|
Some recent topics started on our forums |
ParallaxOcclusionMapping Error
|
hi all
I study ParallaxOcclusionMapping on HLSL, I got an DirectX SDK. but I can't understand some code, for example:
// Normalize the light and view vectors and transform it to the tangent space:
float3x3 mWorldToTangent = float3... |
Posted April 13, 2010 11:21:17 PM
|
CG shader setsamplerstat
|
hello all
how can i set texture sampler filter info in CG Shader, not CGFX.
a texture in my shader file
uniform sampler2D Shadow =
sampler_state {
minFilter = LinearMipMapLinear;
magFilter = LinearMipMapLinear;
WrapS = Clam... |
Posted December 10, 2009 9:46:00 AM
|
glClipPlane not work
|
hi all;
i use shader in opengl, i find 'glClipPlane' don't works in my games.
when i remove the shader, it works!
so what should i do?
thanks. |
Posted October 11, 2009 6:44:52 AM
|
Beautiful village(demo)
|
Hi All;
This is a scene roaming game, in a very beautiful village, you can tour the beautiful scenery.you can see fog, water refraction and reflection, terrain and so on.
en....This project uses vs2005 ,opengl and cg .
Because I do n... |
Posted October 13, 2008 3:35:19 PM
|
create mpis texture
|
hi all
If I have an TextureID that I create before, Can I Create MipsTexture for it?
Like DirectX's " Texture->Generatemipsublevels()"
thanks |
Posted October 10, 2009 5:18:26 AM
|
Get Texture Data
|
hi all.
if I get a texture ID, how can I get the texture data? I want to modify it dynamicly.
thx |
Posted October 7, 2009 2:13:26 PM
|
opengl GUI
|
hi all, I'm using opengl to Draw GUI in my game, I use images as textures,and I
Draw quads on screen, but I find an Error, pixels what I Draw is blur, I want every pixel in pic I can see on screen, so what's I need to do? |
Posted September 19, 2009 10:34:45 PM
|
mouse control
|
hello
I use mouse to control direction of view in the game
so ,I want to keep mouse point in my game-window(Not Full screen),
en ...that is to say ,How to set mouse point postion and get it?
I use glut....
Thanks! |
Posted September 16, 2007 8:30:55 AM
|
Render grass
|
hello
I meet some problem in work
when I Render a lot of grass out-door (I using alpha-blend)
Do I need sort them(grass) by their Z-buffer length
If I do this ,I should Speed at least n(log(n)) time to sort them!
any good idea did you have ?
th... |
Posted September 12, 2007 8:23:49 AM
|
Multi-texture Blending
|
hello
I'm working on Multi-texture Blending using opengl
so ,I need some information about this;
1) create some textures ;
2) Load texture int to renderUnits like this
//--------
glActiveTextureARB( GL_TEXTURE0_ARB );
glE... |
Posted September 9, 2007 9:54:25 AM
|
View All Topics Started By This User
|
|
Some recent replies made on our forums |
CG shader setsamplerstat
|
i get a method, like this
glBindTexture(GL_TEXTURE_2D, texture);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_NEAREST);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_NEAREST);
then set the texure to CGTextureParmeter.... |
Posted December 11, 2009 1:42:56 AM
|
glClipPlane not work
|
Quote:Original post by Exorcist
its exactly the same as the HLSL command:
void clip(float x);
http://msdn.microsoft.com/en-us/library/ee418281%28VS.85%29.aspx
If you do a signed plane-distance equation and pass the result into the clip() fu... |
Posted October 18, 2009 5:04:20 AM
|
glClipPlane not work
|
Quote:Original post by Exorcist
Don't use the alpha channel, use the clip() function in the pixel shader - it takes a single float value and if that value is less than zero, the pixel shader exists at that point and doesn't write anything to the buf... |
Posted October 15, 2009 10:46:22 PM
|
glClipPlane not work
|
Quote:Original post by V-man
During the Gf2 and Gf4 period, a gyu from nvidia said they used a 1D texture to do the clipping so it consume 1 texture unit. I know it doesn't compare with todays shader based GPUs but I don't see it as a big problem to... |
Posted October 15, 2009 1:51:35 PM
|
glClipPlane not work
|
If I must transform the plane's Data to clip/view space by myself? |
Posted October 11, 2009 11:12:02 PM
|
glClipPlane not work
|
I use CG as shader, is there any info about clip plane In CG?
by the way, i think clip is after VertexShader, and there is some operations on VertexShader's result, and New data will Call PixelShader, then there is some
operations on P... |
Posted October 11, 2009 10:42:17 PM
|
Get Texture Data
|
thx, I backup a copydata in memery, then I Modify the Copydata, at last I use 'glTexSubImage2D' to send data to graphics card, en. It's too slow to get data from graphics card when I use 'glGetTexImage' |
Posted October 8, 2009 12:58:24 AM
|
opengl GUI
|
I use nearest,linear and mips to filter texture.but has no improvment. |
Posted September 20, 2009 2:39:15 AM
|
Mouse select 3D object
|
void Selection::GetOGLPos()
{
GLint viewport[4];
GLdouble projection[16];
GLdouble modelview[16];
GLfloat winX, winY, winZ;
glGetDoublev( GL_MODELVIEW_MATRIX, modelview ); //Get modelMatrix
glGetDoublev( GL_PROJECTION_... |
Posted October 29, 2007 5:28:35 AM
|
Isometric editor
|
very good !
I think an editor is a manger for resource..
so ,your mapfile's format is very important.
It must keep enough information for application to load resource.
//-------------
Is there any EventFlag in your mapfile?. enn
or . It is ... |
Posted October 8, 2007 9:10:37 AM
|
View All Replies Made By This User
|