View Full Version : how to draw 3d window
11-28-2007, 06:56 AM
help me to draw that window without shading manually
give me some link tutorial!!!!
11-28-2007, 07:58 AM
So, you mean the image on the left ? The one on the right is pretty simple.
Cut the unwanted parts please.
Or write better english. Or in french :)
For the image on the left, search for fisheye opengl projection.
The method :
- render scene to texture
- render a textured grid with it, and distord it like you need
- for wide angles, render the scene multiple times, in a cubic arrangement.
11-28-2007, 08:31 AM
nope... i mean in the right!!!
wew.. you said that is easy?? cooll....
hehehe... i'm Indonesian, i can't speak english well sory!!!
so you know how???
please tell me the detail couse if you answer so shortly i cann't understand
or you can tell me some tutorial (compleated not teory)
in the left i can do that...
if this finish i want to make the shadow with stencil buffer...
please help me MASTER...!!!^^
11-28-2007, 08:50 AM
Have you looked at these tutorials?
I know they don't teach you how to *exactly* draw what's in the right window. But they teach you to draw 3D things. If you understand them, you'll probably be able to figure out the rest yourself.
When learning something, you have to start with the basics. Once you understand how to draw simple things like polygons and cubes, drawing more complex things won't be much harder.
11-28-2007, 02:15 PM
Drawing that window is simply a matter of drawing 15 GL_LINES (if you don't mind transparency), or 17 GL_QUADS.
The "large" sides will each need to be represented by four quads since there's no way to subtract one quad from another.
11-29-2007, 09:27 PM
i have found that article and i know how to draw some shapes
i have learn from my college...
but i can't understand how to draw an object,
and then make a hole in it... like that window
and the window is really 3d, not drawn with lines,
not transpaarent because i want to make its shadow
11-30-2007, 01:25 AM
Well, you obwiously have a problem with your geometrical imagination :) This object are just four boxes, placed in such a way that a window appears. Try to draw it on a sheet of paper and think how it can be decomposed into triangles - then feed this triangles to OpenGL (you said you knew how).
12-03-2007, 01:28 AM
emm... i'm heard that one object can sub another object
what is that?? any body know??
how i can find it??
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.