Search found 55 matches

by Terry
Fri Nov 05, 2010 6:18 am
Forum: Beginners Help
Topic: scene node visible
Replies: 2
Views: 243

Hi slavik262

the second case is what i need,thank you very much! :lol:
by Terry
Fri Nov 05, 2010 3:03 am
Forum: Beginners Help
Topic: scene node visible
Replies: 2
Views: 243

scene node visible

Hi,

someone can tell me how can i know if a scene node is visible before draw the scene?it's very important for me!

thx
by Terry
Mon Oct 11, 2010 1:28 am
Forum: Beginners Help
Topic: sphere mapping artifacts
Replies: 2
Views: 430

sphere mapping artifacts

Hi all, I've tried to use EMT_SPHERE_MAP material,my model is a teapot,texture is given by irrlicht/media/spheremap.jpg,driver is ogl.But the effect is very bad.I'd like to know if i've made some errors?Anything else to do to use sphere mapping except to assign the material type. http://img259.image...
by Terry
Thu Sep 30, 2010 3:13 am
Forum: Beginners Help
Topic: setNearValue artifacts
Replies: 0
Views: 461

setNearValue artifacts

Hello everyone, i've construct a big scene,for some special reasons,i need to modify the near value of camera.but i find it doesn't work like what i expect. This is my experiment: set camera position: -21690.0f, 3000.0f, -25938.0f set camera target :-21690.0f, 1.0000f, -25938.0f there is a plane loc...
by Terry
Sat Sep 25, 2010 2:21 am
Forum: Beginners Help
Topic: Could not load mesh, because file could not be opened.
Replies: 1
Views: 1342

Could not load mesh, because file could not be opened.

It's a very strange problem. When i load my scene graph exported by irrEdit,named "a.irr",it always gave the error" Could not load mesh, because file could not be opened: : boundingbox.obj " I'm sure there are no path problems,what's the reason? BTW,if only custom scene nodes by ...
by Terry
Sun Sep 05, 2010 1:39 am
Forum: Beginners Help
Topic: RTT artifacts by setting near clipping value
Replies: 3
Views: 331

Uppload your images somewhere else like imageshack.us those links don't even work when I copy,paste them. Oh,yes this time i upload the images to flickr,i hope you can see them. http://www.flickr.com/photos/53644207@N07/4958267727/in/photostream/ http://www.flickr.com/photos/53644207@N07/4958267783...
by Terry
Sat Sep 04, 2010 1:39 pm
Forum: Beginners Help
Topic: RTT artifacts by setting near clipping value
Replies: 3
Views: 331

A bit more supplyment,
only when the RTT texture generation i set the larger clipping value,alternate i would change it back to render my scene use small value.
by Terry
Sat Sep 04, 2010 1:32 pm
Forum: Beginners Help
Topic: RTT artifacts by setting near clipping value
Replies: 3
Views: 331

RTT artifacts by setting near clipping value

Hello, My question is about setNearValue() function.My scene is very large,so distances between objects is a bit far.When i use RTT(render to texture) effects,sometimes i must put carmera far away from viewport,so i should set a larger Znear value,using camera->setNearValue(),then artifacts arised....
by Terry
Tue Aug 24, 2010 11:16 am
Forum: Beginners Help
Topic: shader uniform array initialization
Replies: 2
Views: 369

Thank you very much! GLSL uniform vec4 waveData[5]; irrlicht f32 waveData[20] = {0.766f,0.643f,200.0f,2.0f, 0.174f,0.985f,240.0f,2.4f, -0.985f,0.174f,184.0f,1.82f, -0.643f,-0.766f,120.0f,1.2f, 0.174f,-0.985f,160.0f,1.6f}; services->setVertexShaderConstant("waveData",waveData,20); It works...
by Terry
Tue Aug 24, 2010 7:20 am
Forum: Beginners Help
Topic: shader uniform array initialization
Replies: 2
Views: 369

shader uniform array initialization

In my shader,uniform array like this was used: uniform vec4 WaveData[5]; i found irrlicht can not initialize this array,just only vector waveData[0] could be set using:setVertexShaderConstant() function. so in my opinion,i must declare like: uniform matrix4 waveData1; uniform vector4 waveData2; hope...
by Terry
Thu Aug 19, 2010 2:24 am
Forum: Beginners Help
Topic: maybe it's a bug : trans_alphach artifacts
Replies: 1
Views: 203

hoho,
problem is solved,it's my mistake.
By default irrlicht forbidden z-buffer of transparent material.
just adding:
smgr->getParameters()->setAttribute(scene::ALLOW_ZWRITE_ON_TRANSPARENT,true);

That's all right!
by Terry
Thu Aug 19, 2010 1:48 am
Forum: Beginners Help
Topic: maybe it's a bug : trans_alphach artifacts
Replies: 1
Views: 203

maybe it's a bug : trans_alphach artifacts

Hello folks, i's using irrlicht to build my scene,for trees models there's one artifact.The tree trunks are solid and the leaves are defined as "trans_alphach" type,and the textures for leaves are tga format which support alpha chanal transparence.The artifact is that we could see other t...
by Terry
Thu Jul 08, 2010 2:24 am
Forum: Beginners Help
Topic: shader struct uniform setting
Replies: 0
Views: 447

shader struct uniform setting

Hello, In shader language i don't know how to pass variables to struct uniform,please look the codes below,color messages can not be passed to Lighting struct.Anyone knows how to make it working? Thank you! pixel shader: struct Lighting { float R; float G; float B; }; uniform Lighting L; void main(...
by Terry
Fri Jun 11, 2010 12:35 am
Forum: Beginners Help
Topic: FPS display error
Replies: 6
Views: 559

wow,i mean it displays like "…………FPS:@#!"
19 could not be displayed.
by Terry
Thu Jun 10, 2010 11:24 am
Forum: Beginners Help
Topic: FPS display error
Replies: 6
Views: 559

CuteAlien wrote:Maybe now-last is zero? Then you would try dividing by that.
No i've traced the code step by step,it's not zero.and fps is 19.