-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] Why does my code fail to render color on a cube? #129
Comments
Looks like you're doing a lot of unnecessary work that librw should be doing. I guess I'm to blame for not documenting things properly. I have something similar here, but it looks like i wrote this before i implemented Geometry::unlock() so it calls buildMeshes directly. Just replace that with unlock: https://github.com/aap/librwgta/blob/master/tools/storiesview/main.cpp#L279 Also you the proper way to give an atomic a geometry would be The reason why it's black could be because you have no lights? Adding an ambient light might help. |
hm, or perhaps you need some geometry flags. LIGHT and MODULATE. Although without MODULATE the material color will be taken as white, but i think you indeed are missing LIGHT. |
Looks like we are getting somewhere.
somehow the |
I know I probably shouldn't be asking this in
Issues
but this project as far as I know doesn't have a discord or any other way of communication.This code renders the cube plain black
The text was updated successfully, but these errors were encountered: