Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions assets/models/avatar/animation/animations.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"main" : [
"idle",
"idle2",
"roll",
"Jog Backward",
"Jog Forward",
"Jog Strafe Left",
"Jog Strafe Right",
"Standard Run"
]
}
Binary file added assets/models/avatar/animation/fbx/Idle.fbx
Binary file not shown.
Binary file added assets/models/avatar/animation/fbx/Idle2.fbx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added assets/models/avatar/animation/fbx/roll.fbx
Binary file not shown.
Binary file removed assets/models/avatar/barrel.glb
Binary file not shown.
Binary file removed assets/models/avatar/gun/a_smg_reload.glb
Binary file not shown.
Binary file removed assets/models/avatar/gun/a_smg_shoot.glb
Binary file not shown.
Binary file removed assets/models/avatar/guns.glb
Binary file not shown.
Binary file removed assets/models/avatar/house.glb
Binary file not shown.
Binary file removed assets/models/avatar/lee.glb
Binary file not shown.
Binary file modified assets/models/avatar/man.glb
Binary file not shown.
Binary file removed assets/models/avatar/man_.glb
Binary file not shown.
Binary file removed assets/models/avatar/man_mixamo.fbx
Binary file not shown.
Binary file added assets/models/avatar/man_morph.glb
Binary file not shown.
Binary file removed assets/models/avatar/ref/pistol.glb
Binary file not shown.
Binary file removed assets/models/avatar/ref/ref1.glb
Binary file not shown.
Binary file removed assets/models/avatar/ref/ref2.glb
Binary file not shown.
Binary file removed assets/models/avatar/ref/ref3.glb
Binary file not shown.
Binary file removed assets/models/avatar/ref/ref4.glb
Binary file not shown.
Binary file removed assets/models/avatar/ref/rifle.glb
Binary file not shown.
Binary file removed assets/models/avatar/ref/smg.glb
Binary file not shown.
Binary file removed assets/models/avatar/ref/sniper.glb
Binary file not shown.
Binary file removed assets/models/avatar/rifle.glb
Binary file not shown.
Binary file removed assets/models/avatar/ryder.glb
Binary file not shown.
Binary file removed assets/models/avatar/skeleton.glb
Binary file not shown.
Binary file modified assets/models/avatar/woman.glb
Binary file not shown.
Binary file added assets/models/avatar/woman_morph.glb
Binary file not shown.
Binary file removed assets/models/avatar/zombi.glb
Binary file not shown.
Binary file added assets/textures/avatar/avatar_1k/avatar_c.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/avatar_m.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/avatar_n.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/avatar_r.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/avatar_u.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/eye_c.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/eye_n.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/eyelash_a.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/eyelash_c.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/eyelash_n.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/hair.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/hair_a.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/hair_man.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/hair_man_a.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/mouth_a.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/mouth_c.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/textures/avatar/avatar_1k/mouth_n.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/textures/avatar/avatar_alpha - Copie.jpg
Binary file not shown.
Binary file removed assets/textures/avatar/avatar_alpha.jpg
Binary file not shown.
Binary file removed assets/textures/avatar/avatar_alpha_lee.jpg
Binary file not shown.
Binary file removed assets/textures/avatar/avatar_ao.jpg
Binary file not shown.
Binary file removed assets/textures/avatar/avatar_d.jpg
Binary file not shown.
Binary file removed assets/textures/avatar/avatar_m.jpg
Binary file not shown.
Binary file removed assets/textures/avatar/avatar_n.jpg
Binary file not shown.
Binary file removed assets/textures/avatar/avatar_u.jpg
Binary file not shown.
Binary file removed assets/textures/avatar/eye_d.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/eye_n.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/ground.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/lens.png
Diff not rendered.
Binary file removed assets/textures/avatar/guns/lens_s.png
Diff not rendered.
Binary file removed assets/textures/avatar/guns/muzzle_a.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/muzzle_c.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/rifle_c.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/rifle_m.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/rifle_n.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/rifle_r.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/smg_c.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/smg_m.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/smg_n.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/smg_r.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/snipper_c.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/snipper_m.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/snipper_n.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/snipper_r.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/talon_c.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/talon_m.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/talon_n.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/guns/talon_r.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/house.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/zombi/zombi_c.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/zombi/zombi_m.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/zombi/zombi_n.jpg
Diff not rendered.
Binary file removed assets/textures/avatar/zombi/zombi_r.jpg
Diff not rendered.
34 changes: 34 additions & 0 deletions assets/textures/logo.svg
73 changes: 52 additions & 21 deletions src/3TH/Gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,12 @@ export const Gui = {
fontSize:12,
weight:'bold',

//groups:'rgba(50,50,50,0.3)',

//select:'#06A',

text:'rgba(0,0,6,1)',
title:'rgba(0,0,6,1)',
titleoff: '#000',
textOver: '#7fFF00',
textSelect: '#7fFF00',

//select:'#7fFF00',//rgba(0,255,255,0.6)',
//over:'rgba(255,255,255,0.6)',
//overoff:'rgba(255,255,255,0.3)',
button:'rgba(255,255,255,0.1)',
overoff : 'rgba(0,0,6,0.3)',
over:'rgba(0,0,6,0.2)',
Expand All @@ -54,7 +47,7 @@ export const Gui = {
//fontShadow:'#000006',

border:'rgba(255,255,255,0.2)',//'none',
borderSize:0,
borderSize:1,
//overoff:'rgba(255,255,255,0.1)',

groups:'rgba(255,255,255,0.1)',
Expand All @@ -67,15 +60,25 @@ export const Gui = {

const options = Main.getOption();

const ui = new UIL.Gui( { w:250, h:20, close:true, bottomText:['OPTIONS', 'CLOSE'], css:'right:5px;', colors:Gui.colors } )
UIL.Tools.setStyle(Gui.colors)

const b1 = UIL.add('button', { name:'O', w:40, h:40, bw:40, pos:{right:'14px', top:'5px'}, simple:true }).onChange( Gui.showHide )
const b2 = UIL.add('button', { name:'P', w:40, h:40, bw:40, pos:{right:'59px', top:'5px'}, simple:true }).onChange( Gui.gotoGithub )
b1.icon( UIL.Tools.icon('config', 'rgba(0,0,6,0.66)', 30 ) )
b2.icon( UIL.Tools.icon('phy', 'rgba(0,0,6,0.66)', 30 ) )

const ui = new UIL.Gui( { w:250, h:20, close:false, css:'top:48px; right:5px;', colors:Gui.colors } )




ui.content.style.backdropFilter = 'blur(6px)'
//ui.content.style.boxShadow = '0 0px 10px rgba(2,4,24,0.25)'

ui.add( 'empty', {h:3})
//ui.add( 'empty', {h:3})

let bb = ui.add('button', { name:'GITHUB / ABOUT', h:40, bw:40 }).onChange( Gui.gotoGithub )
bb.icon( UIL.Tools.icon('phy', 'rgba(0,0,6,1)', 30 ) )
//let bb = ui.add('button', { name:'GITHUB / ABOUT', h:40, bw:40 }).onChange( Gui.gotoGithub )
//

if( Main.devMode ){
Main.engineList.push('RAPIER')
Expand All @@ -86,33 +89,34 @@ export const Gui = {

ui.add( 'bool', { name:'WORKER OFF', onName:'WORKER ON', value:Main.isWorker, mode:1 }).onChange( Gui.swapWorker )

ui.add( 'empty', {h:3})
//ui.add( 'empty', {h:3})

ui.add( 'bool', { name:'CAPTURE', onName:'STOP', value:false, mode:1 }).onChange( Gui.capture )
//ui.add( 'bool', { name:'CAPTURE', onName:'STOP', value:false, mode:1 }).onChange( Gui.capture )

//ui.add('button', { name:'CAMERA' }).onChange( function(){ console.log( controls.getInfo() )} )


//ui.add( 'empty', {h:6})
ui.add( options, 'mode', { type:'button', values:['LOW', 'HIGH'], selectable:true, p:0 }).onChange( Main.changeMode )


ui.add( 'empty', {h:3})
//ui.add( 'empty', {h:3})

ui.add( 'button', { type:'button', values:['EDIT', 'REPLAY', 'PAUSE'], selectable:false, p:0 }).onChange( function(n){
ui.add( 'button', { type:'button', values:['EDIT', 'REPLAY', 'PAUSE'], selectable:false, p:0, h:30 }).onChange( function(n){
if(n === 'EDIT'){ Main.showEditor(true); this.switchValues(0, 'CLOSE' ); }
if(n === 'CLOSE'){ Main.showEditor(false); this.switchValues(0, 'EDIT' ); }
if(n === 'PAUSE'){ phy.pause( true ); this.switchValues(2, 'PLAY' ); }
if(n === 'PLAY'){ phy.pause( false ); this.switchValues(2, 'PAUSE' ); }
if(n === 'REPLAY') Main.injectCode( Main.getCode() )
})
ui.add( 'empty', {h:3})


Gui.ui = ui;

Gui.display()

const g2 = Gui.ui.add('group', { name:'DEMOS', open:true })
//Gui.camera()
//ui.add( 'empty', {h:3})

Gui.demo(g2)

Expand All @@ -130,6 +134,8 @@ export const Gui = {

const g = Gui.ui.add('group', { name:'DISPLAY' })

g.add( options, 'mode', { type:'button', values:['LOW', 'HIGH'], selectable:true, p:0 }).onChange( Main.changeMode )


g.add( options, 'show_light', { type:'bool' }).onChange( Main.showDebugLight )
g.add( options, 'show_stat', { type:'bool' }).onChange( Main.showStatistic )
Expand Down Expand Up @@ -279,17 +285,33 @@ export const Gui = {

let data = Main.getDemos()

let grB = gg.add('group', { name:'BASIC', open:true, bg:'rgba(180,255,180,0.1)' })
/*let colors = [
'rgba(180,255,180,0.1)',
'rgba(255,255,180,0.1)',
'rgba(255,180,180,0.1)'
]*/

let colors = [
'rgba(255,255,255,0.1)',
'rgba(200,200,200,0.1)',
'rgba(150,150,150,0.1)'
]

let grB = gg.add('group', { name:'BASIC', open:true, bg:colors[0] })
Gui.g1 = grB.add( 'grid', { values:data.Basic, selectable:true } ).onChange( Main.loadDemo )

let grA = gg.add('group', { name:'ADVANCED', open:true, bg:'rgba(255,255,180,0.1)' })
let grA = gg.add('group', { name:'ADVANCED', open:true, bg:colors[1] })
Gui.g2 = grA.add( 'grid', { values:data.Advanced, selectable:true } ).onChange( Main.loadDemo )

if( data[Main.engineType] ){
let grC = gg.add('group', { name:'SPECIFIC', open:true, bg:'rgba(255,180,180,0.1)' })
let grC = gg.add('group', { name:'SPECIFIC', open:true, bg:colors[2] })
Gui.g3 = grC.add( 'grid', { values:data[Main.engineType], selectable:true } ).onChange( Main.loadDemo )
}

gg.add( 'empty', {h:3})



gg.reset()

},
Expand All @@ -313,6 +335,15 @@ export const Gui = {

gotoGithub: () => { window.open( 'https://github.com/lo-th/phy', '_blank' ) },

showHide: () => {

if( Gui.ui.isOpen) Gui.ui.isOpen = false;
else Gui.ui.isOpen = true;
Gui.ui.calc()
Gui.ui.mode('def')

},

swapWorker: ( b ) => {
Main.isWorker = b
Gui.swapEngine()
Expand Down
Loading