Fork me on GitHub

Forum

GLGE WebGL Library/Framework » Discussion
You are not logged in.
Posting as Guest.
11370 Registered users.
User profile for fletch27502
(Send email)
Name: Scott Haynes
Alias: fletch27502
Forum Status: Member
Posts:19
Web site:
Gravatar:
AIM:fletch27502
Jabber / Google Talk:fletch27502
Yahoo IM:fletch27502
Description:
Recent posts:
point Light
Posted at: 2012-11-13 17:23:25
I’m trying to make a scene that simulates the solar system and I have everything working fairly well except the point light for the sun. The problem is that the point light is not affecting the planets due to the distance the planets are away from the sun. I’ve tried to modify the properties of the light to make the lights intensity increase, but I haven’t found the proper settings so far. There are the three attenuation properties?? Is that what I should be modifying??

Scott

camera
Posted at: 2012-04-17 17:08:30
Has anyone created and used a camera that is not a direct child of the scene? I’m trying to build a up a few items camera included that will be a child of a GLGE.Group, and then move that group instead of moving the camera. I thought I had set up the scene correctly, but I wasn’t sure if GLGE expects the camera to be a child of the scene. I know GLGE.Scene has a camera property, and I was hoping that could be any camera in the scene.

Scott

VideoTexture and WebRTC
Posted at: 2012-04-11 18:34:14
I had no problem getting this to work. Super easy. How do you post code on here again?

camera UP
Posted at: 2012-04-10 20:38:00
There was a recent change to GLGE.Placeable object to add the upAxis as a property. By default the UP is set ZUP by default, which is perfect. But the camera still seems to have Y as it’s up. Basically I have to perform a rotation to flip Z and Y in order for my navigation code to work. This rotation is a pain, so I was wondering if there was any hopes of getting the camera to obey the upAxis? Maybe I’ve got code somewhere dealing with that rotation and that’s causing my problems.

Scott

VideoTexture and WebRTC
Posted at: 2012-04-10 19:04:13
Has anyone tried to integrate WebRTC into GLGE? WebRTC is supported by the canary build of chrome. I’m going to try to get the url back from the video stream and then pass that to the VideoTexture object. ;)

Scott

Scene redraw on pic
Posted at: 2012-03-29 14:43:08
I have several scenes in glge that cause the complete scene redraw on pick, the big problem is this cause the canvas to flash to a blank rectangle when this occurs. Has anyone seen this?

I’m using version 0.8, prior to the jiglib integration.
Scott

Collada Texture Loading
Posted at: 2011-12-02 16:23:33
I have a similar problem, but my textures are actually loading when the scene is loaded. The camera’s initial position is very close to the object being loaded(the scene consists of just a hand held radio.). Everything looks great until I move the camera away from the radio, and all of the textures go away leaving the radio all black. It’s as if there is LOD on the radio. If I move the camera back towards the radio the textures do not reappear however. This is a model that I’ve been loading for months with no problems so I’m at a loss as to why this is happening. Has anyone seen a similar problem? All of the textures are powers of 2 and they are correctly loading when the scene is loaded, so I would think there is not any issues with the path to the image files.

Scott

creating a mesh from vertex and face data
Posted at: 2011-11-22 01:46:18
I’m trying to write some code to create a mesh dynamically, and I’m getting errors from the code that I currently have


var meshDefObject = {
positions: [ 1.000,1.000,1.000,1.000,1.000,-1.000,-1.000,1.000,-1.000,1.000,1.000,1.000,-1.000,1.000,-1.000,-1.000,1.000,1.000,-1.000,-1.000,-1.000,-1.000,-1.000,1.000,-1.000,1.000,1.000,-1.000,-1.000,-1.000,-1.000,1.000,1.000,-1.000,1.000,-1.000,1.000,-1.000,-1.000,1.000,-1.000,1.000,-1.000,-1.000,-1.000,1.000,-1.000,1.000,-1.000,-1.000,1.000,-1.000,-1.000,-1.000,1.000,1.000,-1.000,1.000,1.000,1.000,1.000,-1.000,-1.000,1.000,1.000,1.000,1.000,-1.000,1.000,1.000,-1.000,-1.000,1.000,1.000,1.000,-1.000,1.000,1.000,1.000,-1.000,1.000,-1.000,1.000,1.000,-1.000,-1.000,1.000,1.000,-1.000,1.000,1.000,1.000,-1.000,1.000,-1.000,-1.000,-1.000,-1.000,-1.000,1.000,1.000,-1.000,-1.000,-1.000,-1.000,-1.000,1.000,-1.000 ],
normals: [ 0.000,1.000,0.000,0.000,1.000,0.000,0.000,1.000,0.000,0.000,1.000,0.000,0.000,1.000,0.000,0.000,1.000,0.000,-1.000,0.000,-0.000,-1.000,0.000,-0.000,-1.000,0.000,-0.000,-1.000,0.000,-0.000,-1.000,0.000,-0.000,-1.000,0.000,-0.000,-0.000,-1.000,-0.000,-0.000,-1.000,-0.000,-0.000,-1.000,-0.000,-0.000,-1.000,0.000,-0.000,-1.000,0.000,-0.000,-1.000,0.000,1.000,0.000,-0.000,1.000,0.000,-0.000,1.000,0.000,-0.000,1.000,-0.000,0.000,1.000,-0.000,0.000,1.000,-0.000,0.000,-0.000,-0.000,1.000,-0.000,-0.000,1.000,-0.000,-0.000,1.000,0.000,-0.000,1.000,0.000,-0.000,1.000,0.000,-0.000,1.000,0.000,0.000,-1.000,0.000,0.000,-1.000,0.000,0.000,-1.000,0.000,-0.000,-1.000,0.000,-0.000,-1.000,0.000,-0.000,-1.000 ],
faces: [ 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35 ],
};

var grp = new GLGE.Group();
glgeScene.addObject( node.glgeObject );
var obj = new GLGE.Object();
var mesh = new GLGE.Mesh();

if ( meshDefObject.positions )
mesh.setPositions( meshDefObject.positions );
if ( meshDefObject.normals )
mesh.setNormals( meshDefObject.normals );
if ( meshDefObject.uv1 )
mesh.setUV( meshDefObject.uv1 );
if ( meshDefObject.faces )
mesh.setFaces( meshDefObject.faces );

obj.setMesh( mesh );
grp.addObject( obj );

Do I have to define a material? Or is there something else wrong?
Scott

Losing Textures
Posted at: 2011-11-15 20:25:54
I have a model of a hand radio that I’ve been loading for months, and out of the blue I’m getting a very strange behavior. If I load the radio very close to the camera the radio has all of it’s textures correctly displayed. As soon as I move away from the radio all of the textures go away and the radio looks mostly black. Moving back towards the radio doesn’t bring back the textures, so at this point there is nothing I can do to bring back the original textures. It’s almost as if there was some type of LOD going on, but I’ve been loading this model for months with no issues. Anyone have any ideas?

Scott

physics
Posted at: 2011-10-11 18:45:39
I got the physics working, but I’m running into issues with Y and Z axis being confused. What is the coordinate system for GLGE. With no rotations the camera is looking down the -z axis. I really want Z to be up, not Y. The dae file I’m bringing in for the physics demo is Z_UP.

Also, I’m used to setting local and world coordinates. GLGE.Placeable have setLoc and setDLoc. Is the setDLoc the local coordinates? The docs say the ’D’ is for displacement, and that it’s useful for animations, so I’m a little confused.

Scott

Search for all user posts

WordPress forum plugin by Fredrik Fahlstad. Version: 1.7.8.