Search found 93 matches

by TheC
Tue Dec 19, 2006 8:53 am
Forum: Advanced Help
Topic: More than one texture to shader
Replies: 3
Views: 640

for directX, multitexture your object using the Texture1 2 3 and 4 members.

In the shader put:

Code: Select all

sampler2D tex0 : register(s0);
sampler2D tex1 : register(s1);
Thats should work, it does here. Thanks to omaremad for that one ;)
by TheC
Wed Dec 13, 2006 5:57 pm
Forum: Bug reports
Topic: [not a bug?] device->drop() and leaks
Replies: 11
Views: 866

device->drop() gives me a windows "application must close" error. I'm trying to find the problem now.. I will report back if i find anything :)
by TheC
Sun Dec 10, 2006 4:45 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: Forming a definitive tools guide for irrlicht
Replies: 16
Views: 4629

Hey,

I misread " FREEWARE - COMMERCIAL USE - COMPLETE" thinking you wanted the tools divided.
by TheC
Sat Dec 09, 2006 2:33 am
Forum: FAQs, Tutorials, Howtos, and external tool lists
Topic: Forming a definitive tools guide for irrlicht
Replies: 16
Views: 4629

Removed due to my stupidity :D
by TheC
Fri Dec 08, 2006 4:21 pm
Forum: Advanced Help
Topic: How to implement HDR into Irrlicht
Replies: 5
Views: 932

To get an effect like real HDR, you'll need to do some big modifications to irrlicht. You will need to change the render targets to be 32-Bit and floating point. You will need to remake all your textures into floating point formats (I believe DDS can do this, not difficult to add in). You'd then hav...
by TheC
Tue Dec 05, 2006 12:07 am
Forum: Advanced Help
Topic: Frustum Culling - Its culls too much!
Replies: 1
Views: 398

Frustum Culling - Its culls too much!

Hi, I have noticed that if I have a large mesh (I mean, very large) If all corners of its bounding box are ouside the frustum, it will cull, even though I am looking at the object itself. I tried changing the culling code in ::isCulled to the removed code (commented out) in the same method, but that...
by TheC
Sun Dec 03, 2006 11:15 pm
Forum: Advanced Help
Topic: Getting MaterialTypeParam
Replies: 6
Views: 795

the setVariable method is a member of the CD3DHLSLMaterialRenderer class, In a previous project where my shaders required information from a material, I would set the constant within the OnSetMaterial method, then recompile irrlicht to use it. My projects have only been D3D specific, so it worked pe...
by TheC
Sun Dec 03, 2006 9:32 pm
Forum: Advanced Help
Topic: Independent Camera Rotation
Replies: 4
Views: 566

I use the FPS camera, but disable controls :)
by TheC
Sun Dec 03, 2006 9:10 pm
Forum: Advanced Help
Topic: Getting MaterialTypeParam
Replies: 6
Views: 795

If you go into the Irrlicht source and find where OnSetMaterial is called for CD3D9HLSLShaderMaterialRenderer, you can call:

this->setVariable(true, "typeparam", reinterpret_cast<irr::f32*>(Material.typeParam), 1);

I hope thats useful ;)
by TheC
Mon Nov 27, 2006 9:52 pm
Forum: Advanced Help
Topic: ->getAbsoluteRotation()
Replies: 1
Views: 309

->getAbsoluteRotation()

This command doesn't exist, so I've been trying to re-create it by extracting the angles from the parents AbsoluteTransformation matrix and somehow combining them with the childs local rotation. The Matrix methods have ntohing to rotate a rotation vector. So I am kind of stuck at this point. Thanks,...
by TheC
Wed Nov 22, 2006 5:14 am
Forum: Beginners Help
Topic: Shaders
Replies: 10
Views: 594

You need to tell the shader where the light is, since it would never know. In OnSetConstants do: services->setVertexShaderConstant("LightPosition", reinterpret_cast<irr::f32*>(&lpos), 3); Then in your shader at the top: float3 LightPosition; Then just call it in the vertex shader where...
by TheC
Wed Nov 22, 2006 5:10 am
Forum: Beginners Help
Topic: Parallax Mapping / Normal Map and Bump Map generation
Replies: 9
Views: 1216

nestumkiller, The height file contains a range of grey colours from 0 (black) to 255 (white) the intensity determines how high that pixel is. For example, fill the entire texture with black. then in white text write "Hello", then load up the parallax example. You'll see that the while text...
by TheC
Sat Nov 18, 2006 11:51 pm
Forum: Beginners Help
Topic: cannot compile irrlicht
Replies: 12
Views: 2016

Try compiling in "Release" mode.
by TheC
Sat Nov 18, 2006 4:37 pm
Forum: Advanced Help
Topic: What the heck?
Replies: 6
Views: 430

Have you set driver->setAmbientLight ?
by TheC
Sat Nov 18, 2006 6:11 am
Forum: Advanced Help
Topic: Irrlicht in a Windows Window! Cant find the HWND!
Replies: 3
Views: 695

I just did:

HWND IrrWnd = CreateWindowEx("BUTTON"....

then in SCreationParameters (for CreateDeviceEx), I set my hwnd to that.