Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / Making a 3D object not plain white

Author
Message
kd5crs
8
Years of Service
User Offline
Joined: 25th May 2016
Location:
Posted: 25th May 2016 06:15
Hello,

I'm not sure what the exact term is, so I'll just describe the issue. I made a model in FreeCAD, exported it as a mesh object, and added it to my AppGameKit game. It shows up, but is white and has no lighting. Turning on the sun light in AppGameKit had no effect, neither did turning on shader 0.

I want the object to be yellow and show its 3D-ness. What do I need to do?

Thanks!
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 16th Jun 2016 10:08
perhaps this:

Hail to the king, baby!
Jack
20
Years of Service
User Offline
Joined: 4th Oct 2004
Location: [Germany]
Posted: 16th Jun 2016 15:47
Pics, or it didn't happen =)

Maybe the normals are not exported correctly, maybe it is code.
If shadey's good code doesn't help you, upload an example model and I will take a look.

Greetings, Jack

[/url]

Login to post a reply

Server time is: 2024-11-23 22:28:19
Your offset time is: 2024-11-23 22:28:19