Search found 51 matches

by comicsteam
Mon Mar 23, 2009 8:47 am
Forum: Beginners Help
Topic: how to apply ISkinnedMesh to several nodes?
Replies: 1
Views: 404

how to apply ISkinnedMesh to several nodes?

I made two .x files: "mesh.X" contains the mesh and bones "anim.X" contains the bone animation I tried to add 3 nodes with different animation speed. here's my code: IAnimatedMesh* mesh = smgr->getMesh("mesh.X"); ((scene::ISkinnedMesh*)mesh)->useAnimationFrom((scene::IS...
by comicsteam
Sat Mar 21, 2009 7:05 am
Forum: Beginners Help
Topic: how to get tangent in HLSL?
Replies: 3
Views: 405

BlindSide wrote:Once you generate a tangent mesh using SceneManager->getMeshManipulator(), you can access the tangents and binormals using the TEXCOORD1 and TEXCOORD2 semantics respectively.
Thanks for your help~
by comicsteam
Fri Mar 20, 2009 6:48 pm
Forum: Beginners Help
Topic: how to get tangent in HLSL?
Replies: 3
Views: 405

does anyone know how to solve this problem?
by comicsteam
Fri Mar 20, 2009 9:08 am
Forum: Beginners Help
Topic: how to get tangent in HLSL?
Replies: 3
Views: 405

how to get tangent in HLSL?

i want to make my own tangent space normal mapping shader.
in HLSL, i can get the position, normal, texture coordinate through POSITION, NORMAL, TEXCOORD0 respectively.
however, i cannot get the tangent through TANGENT.
how can i get the tangent in HLSL?
by comicsteam
Mon Mar 16, 2009 2:49 am
Forum: Code Snippets
Topic: [C++] Postprocessing class and shaders (GLSL and HLSL)
Replies: 41
Views: 27739

This is really a nice framework~!
but I don't understand, why we don't need to delete the object created by 'new' method? :?
how can i remove an intermediate stage?
by comicsteam
Fri Feb 27, 2009 9:45 am
Forum: Beginners Help
Topic: how to use sprite for button?
Replies: 8
Views: 919

problem solved..... i have added a new empty sprite bank, but it don't have any sprite in it now i added a sprite (with a single frame) and it works //add an empty sprite bank gui::IGUISpriteBank* sb = guienv->addEmptySpriteBank("my button"); video::ITexture* texture_up = driver->getTextur...
by comicsteam
Fri Feb 27, 2009 6:11 am
Forum: Beginners Help
Topic: how to use sprite for button?
Replies: 8
Views: 919

If you really debug your app you'll aslo see the stack trace and the debugger will point to the problematic code section. That's the really important thing. it always pointed to "env->drawAll();" Are you sure all the textures exist and that the getTexture function is not returning 0 (NULL...
by comicsteam
Thu Feb 26, 2009 6:16 pm
Forum: Beginners Help
Topic: how to use sprite for button?
Replies: 8
Views: 919

what does your debugger say when it crashes? :p you could check out my IGUIFileSelector which I put in the Code Snippets thread a while ago, that uses a sprite bank, i do remember they were a bit tricky to handle... it said "Unhandled exception at 0x1001d0c2 in sc_viewer.exe: 0xC0000005: Acces...
by comicsteam
Thu Feb 26, 2009 4:12 pm
Forum: Beginners Help
Topic: how to use sprite for button?
Replies: 8
Views: 919

how to use sprite for button?

i want to use button->setSprite() to make my button use different texture image on different state. however, i don't know how to use the sprite bank my program just crashed after i clicked the button. here's my code: gui::IGUIButton* button= guienv->addButton(core::rect<s32>(core::position2di(500,40...
by comicsteam
Mon Feb 23, 2009 5:13 pm
Forum: Beginners Help
Topic: CameraSceneNodeMaya can't be repositioned
Replies: 4
Views: 478

CameraSceneNodeMaya can't be repositioned

this question has been asked by sunzhuo before. we cannot initialize MAYA camera position.....
is it possible to add one more parameter in addCameraSceneNodeMaya()
or provide serializeAttributes() function,
so that we can change the camera position??
by comicsteam
Wed Feb 18, 2009 7:11 am
Forum: Beginners Help
Topic: normal mapping material cannot use texture matrix
Replies: 0
Views: 347

normal mapping material cannot use texture matrix

texture matrix is applied correctly when I use EMT_SOLID material type
however, the matrix is ignored when EMT_NORMAL_MAP_SOLID is used
how can i fix this problem?
if i want to write my own shader, how can i get the texture matrix?
by comicsteam
Mon Feb 16, 2009 8:03 pm
Forum: Beginners Help
Topic: does Irrlicht support floating point texture?
Replies: 2
Views: 423

does Irrlicht support floating point texture?

In ECOLOR_FORMAT there is no floating point color format
does Irrlicht support floating point texture?
if yes, how can i create it?
by comicsteam
Thu Feb 12, 2009 10:56 pm
Forum: Beginners Help
Topic: Animation speed problem
Replies: 0
Views: 407

Animation speed problem

I have made a character model with bone animation the sampling framerate is 60fps and the animation has only 10 frames (1/6 second) I exported it in .X format, and the exported file is correct (viewed in DirectX Viewer) after loading into Irrlicht, everything is fine except the animation speed, it t...
by comicsteam
Mon Feb 09, 2009 5:03 pm
Forum: Beginners Help
Topic: how to animate texture coordinate?
Replies: 8
Views: 686

Just a thought.. what's "time"? Is it some huge number converted from u32, causing the texture matrix to have a massive Y translation? thanks for your help~! you pointed out the problem :shock: "time" is the system time. it seems too big for the matrix i fixed it and now it work...
by comicsteam
Mon Feb 09, 2009 12:40 pm
Forum: Beginners Help
Topic: how to animate texture coordinate?
Replies: 8
Views: 686

a shader can also do that quite easy in fact... the realisticWaterScene node for example moves the bump linear, but I guess if you move 2 or 3 good layers blended (one layer with sudden changes for bubbles and one smooth foam and somehow out.color multipield or added... try) it would look quite nic...