Hi ,
My model needs to cast and receive shadows. How do I do this. Do I have to test each polygon with every other polygon and calculate the shadow polygon. My models generally have about 5,000...
Type: Posts; User: dpsv
Hi ,
My model needs to cast and receive shadows. How do I do this. Do I have to test each polygon with every other polygon and calculate the shadow polygon. My models generally have about 5,000...
Hi ,
I need to dissolve 'Polygon A' into the 'Polygons B'. What does glDepthMask(False) do and how is it different than glDisable(GL_DEPTH_TEST) ?
Below is what I am doing. I am working on...
Hi,
I do the following and it works
GlMemDC = CreateCompatibleDc(NULL);
memBitmap = CreateDIBSection(0,BitmapInfo,DIB_RGB_COLORS,&pBits,NULL,0);
OldmemBitmap = SelectObject(GlMemDc,...
Hi ,
I have been able to create a BSP tree successfully and display my polygons correctly. Next I need to do is Boolean Calculations for HLR and secondly create Shadows. How do I do that. Can...
Hi,
Use CreateDIBSection and use compatable DC with 0.
DPS
[This message has been edited by dpsv (edited 01-20-2002).]
Is GL_COLOR_MATERIAL enabled ?
Hi ,
try disabling the depth buffer and then try.
DPS
Why not break the polygon into smaller polygons. Break your 4 sided polygon into 2 triangles and then take the centroid and create 3 new triangles. Repeat the process until the size is good enough.
...
Download from
ftp://ftp.microsoft.com/softlib/mslfiles/opengl95.exe contains the Dlls and Lib files
DPS
Hi ,
Following is the source code which I use to split a polygon by a plane. Sometimes the polygons that are split are not correct and I can't seem to understand why. The source code is a pascal...
Hi,
Please tell me what state (Enabled/Disabled) should be of the following when I have to implement transparency.
a. GL_DEPTH_TEST
b. GL_CULL_FACE
c. GL_ALPHA_TEST
I am rendering the opaqe...
Hi,
I found an example of BSP tree by Mr. Nathan from Dr. dobbs journal site, and seems it has some bugs as it crashes one of my same input file. The other bug i found is in the Split procedure
...
Hi ,
Just figured out that using blending I can never get a white color , which means I cannot create a color space. Its because the value of RGB colors will keep on decreasing and will make a...
Hi,
Thanks for the replies...
Yes,I was drawing from back to front and still I cannot get the colorspace to work even with 0.33 .
Here is the figure that i want to achieve
...
Hi ,
Trying to draw 3 polygons (Red , Green , Blue) overlapping each other to get the RGB color space using blending but cant get it to work. Any ideas. I am using
glBlendFunc(GL_SRC_ALPHA,...