Why colour changes when the object collide?

A place to discuss everything related to Newton Dynamics.

Moderators: Sascha Willems, walaber

Why colour changes when the object collide?

Postby 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

Re: Why colour changes when the object collide?

Postby 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.
Help improving the Newton Game Dynamics WIKI
User avatar
JernejL
 
Posts: 1578
Joined: Mon Dec 06, 2004 2:00 pm
Location: Slovenia

Re: Why colour changes when the object collide?

Postby 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

Re: Why colour changes when the object collide?

Postby 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

Re: Why colour changes when the object collide?

Postby 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

cron