Simple renderer in .net with SharpGL (openGL) - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: Rendering Techniques (https://forums.ldraw.org/forum-20.html) +--- Thread: Simple renderer in .net with SharpGL (openGL) (/thread-10874.html) Pages:
1
2
|
Re: Simple renderer in .net with SharpGL (openGL) - Michael Heidemann - 2013-12-07 I really appreciate your comments and ideas. But I like to stay with visual basic Maybe we can solve the issues that I have by simplyfying the context. Given: LDrawObject with radius of bounding box = radiusbox Result: Code in pure openGL, where the LDrawObject is drawn with a function called DrawLDrawObject() DrawLDrawObject() only uses the colors and vertices just from the files. So there needs to be code for the world and for the modelview that i am looking for. Anybody out there who can help and post his (working) code here? Re: Simple renderer in .net with SharpGL (openGL) - Roland Melkert - 2013-12-07 You need to drop the gl.frustum call, it's an alternative to gl.perspective. In this setup it's applying both projections I think. And like Travis wrote you might have to push the whole scene a bit back to compensate for the near plane. Re: Simple renderer in .net with SharpGL (openGL) - Michael Heidemann - 2013-12-08 Thanks to all that gave input in this case Finally I got it to work (mostly wrong thinking in 3D was the error). The last code is now: Code: Dim gl As New SharpGL.OpenGL This code should work on all parts, as the dimensions of the parts are used for the values. I still need to test this, but I do not expect strange results. After that I need to enhence the quality of the shown picture. I'll shurely come back with some questions. Edit: With the new lines each fov value between 1 and 90 will not destroy the view. |