Simple renderer in .net with SharpGL (openGL)


Re: Simple renderer in .net with SharpGL (openGL)
#38
Thanks to all for your help.

Currently I do not exactly what the reason is, but if you use glcolor I have to append a "F" at the number and then the wanted color is drawn.
I have never been aware of that possibility, but that was the only difference to other codes that seems to work.

So:
gl.Color(100, 0, 0) -> shows only black surfaces
gl.Color(100.0F, 0.0F, 0.0F) -> shows the desired surface color

Now I know why! If I enter just a number then it is assumed to be an integer instead a single value.
I know from LDraw that we use RGB values in the range 0 to 255 and so I entered that numbers. But that seems to be wrong!

Maybe someone with more knowlage about this issue can write one or two lines here for others and me to explain why this is this way.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Re: Simple renderer in .net with SharpGL (openGL) - by Michael Heidemann - 2013-12-02, 17:58

Forum Jump:


Users browsing this thread: 4 Guest(s)