A place to discuss everything related to Newton Dynamics.
Moderators: Sascha Willems, walaber
by ToniMachado » Sun Apr 05, 2009 5:23 pm
Hello everyone,
I'm new user of Newton Game Dynamics, and I'm developing my own simulator to my PhD.
I'm using GLUT OpenGL 3.7.6 library with Newton Game Dynamics 2.0.
My problem is:
When I live a box, during the trajectory at the floor, the of the box colour it is correct, after collide with something, some faces color changes to gray, and alpha channel of the box is changed to.
I think it occurs by influence of de Newton Game Dynamics engine, but I don't know how to solve this.
Anybody can help me to solve this problem?
-
ToniMachado
-
- Posts: 14
- Joined: Thu Jan 29, 2009 11:22 am
by JernejL » Mon Apr 06, 2009 8:08 am
This sounds like a very strange problem and i am skeptical that newton would cause something like this, since it doesn't affect graphics engine at all.
You should show a demo or a video what exactly happens and under what conditions.
-
JernejL
-
- Posts: 1578
- Joined: Mon Dec 06, 2004 2:00 pm
- Location: Slovenia
-
by JoeWright » Mon Apr 06, 2009 8:45 am
Could some normals be getting flipped? Maybe you've got a bug in how you record the matrix from Newton.
-
JoeWright
-
- Posts: 69
- Joined: Sat Apr 30, 2005 1:42 pm
by agi_shi » Wed Apr 08, 2009 8:52 am
It's most definitely not Newton; Newton has nothing to do with rendering.
I'd go with the "flipped normals" idea by the poster above me - if misinterpreting the 4x4 transformation matrix from Newton, it's possible it's affecting the transformation of your cube, resulting in flipped normals and therefore incorrect colours.
-
agi_shi
-
- Posts: 263
- Joined: Fri Aug 17, 2007 6:54 pm
by ToniMachado » Thu Apr 09, 2009 12:09 pm
The problem was resolved.
You are right, it was not a problem by Newton influence.
It was a bug in GL thread.
Thanks a lot to everyone.
-
ToniMachado
-
- Posts: 14
- Joined: Thu Jan 29, 2009 11:22 am
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 24 guests