Search found 246 matches

by Asimov
Tue Nov 06, 2018 12:02 am
Forum: Beginners Help
Topic: Can anyone tell me if this shader will work (HLSL)
Replies: 15
Views: 3461

Re: Can anyone tell me if this shader will work (HLSL)

Hi TheMormegil, Thanks. I have been trying to learn, but doing long hours in angularjs at work has been sapping my attention span grr LOL. I am only trying to build a shader which can use texture, a normalmap and can use 4 or 5 lights, as the standard shaders in irrlicht can only take light from one...
by Asimov
Mon Oct 15, 2018 12:28 am
Forum: Beginners Help
Topic: Can anyone tell me if this shader will work (HLSL)
Replies: 15
Views: 3461

Re: Can anyone tell me if this shader will work (HLSL)

Hi devsh, I had a look at Shader Toy but it was only for GL shaders and my project is directx, so I need to use HLSL shaders. I haven't got much farther at this point. Getting a bit disappointed with my terrible efforts so far LOL. I have messed with fx composer and produced some simple shaders, but...
by Asimov
Sat Oct 06, 2018 8:49 am
Forum: Beginners Help
Topic: Can anyone tell me if this shader will work (HLSL)
Replies: 15
Views: 3461

Re: Can anyone tell me if this shader will work (HLSL)

Hi CuteAlien, I found where the problem was, it was in the callback. I am not even sure how the callback functions, and what the purpose for it, other than it calls back LOL. Anyway to cut a long story short I have now altered the callback class and now it crashes on startup doh. I haven't posted my...
by Asimov
Wed Oct 03, 2018 6:07 pm
Forum: Beginners Help
Topic: Can anyone tell me if this shader will work (HLSL)
Replies: 15
Views: 3461

Re: Can anyone tell me if this shader will work (HLSL)

Hi CuteAlien, You are right, and I don't even remember changing them. I know I still have something wrong though because I got this error. I am going though the code now to see if I have missed something else. Once I got the base one to load again, I will at least have more of a channce when I start...
by Asimov
Tue Oct 02, 2018 11:23 pm
Forum: Beginners Help
Topic: Can anyone tell me if this shader will work (HLSL)
Replies: 15
Views: 3461

Re: Can anyone tell me if this shader will work (HLSL)

Hi CuteAlien, I have just tried to load d3d9.hlsl which is the one in tutorial 10, and even that one is not compiling, so that leads me to believe that when I cut my code down to just load hlsl I am doing something wrong, so here is my code    #include <irrlicht.h>     #include <iostream>     #inclu...
by Asimov
Tue Oct 02, 2018 5:42 pm
Forum: Beginners Help
Topic: Can anyone tell me if this shader will work (HLSL)
Replies: 15
Views: 3461

Re: Can anyone tell me if this shader will work (HLSL)

Hi CuteAlien, Thanks for the reply. Your explanation was clear, and it seems I have to find some older tutorials that are specifically for dx9. I have spent about a month trying to get this to work, and failing miserably. Just tried the H-craft game. It has improved a lot since I first played it a f...
by Asimov
Mon Oct 01, 2018 7:28 pm
Forum: Beginners Help
Topic: Can anyone tell me if this shader will work (HLSL)
Replies: 15
Views: 3461

Re: Can anyone tell me if this shader will work (HLSL)

Hi CuteAlien, Well it is a 3ds max shaderfx shader exported to HLSL. I even exported it as an older hlsl 3 standard. The problem is how do I know what works in irrlicht. Like I said I have read lots of posts saying there is no such thing as an irrlicht shader and learn hlsl. The problem is that I do...
by Asimov
Sun Sep 30, 2018 9:45 am
Forum: Beginners Help
Topic: Can anyone tell me if this shader will work (HLSL)
Replies: 15
Views: 3461

Can anyone tell me if this shader will work (HLSL)

Hi, I have just built a shader in 3ds Max using shaderfx. It exports to HLSL 3 and 5. Now the problem is that so far I haven't worked out how to get the code working in irrlicht for shaders. I have tried pulling apart tutorial 10 and trying to load my shader into it, but I think I am doing it wrong ...
by Asimov
Sat Sep 22, 2018 5:02 pm
Forum: Beginners Help
Topic: Loading an OBJ coming out black
Replies: 19
Views: 2884

Re: Loading an OBJ coming out black

Hi CuteAlien, Just a thought. Wouldn't it be a good idea to have a shader library on the irrlicht site. I am sure a lot of people have already written nice shaders, which of course could be modified, and shader text files don't take a lot of room. I have been playing with fx composer, but haven't go...
by Asimov
Sun Sep 16, 2018 11:17 pm
Forum: Beginners Help
Topic: Loading an OBJ coming out black
Replies: 19
Views: 2884

Re: Loading an OBJ coming out black

Hi CuteAlien, It would be a shame to have to use another engine when I have learnt so much about this one. In fact I came to irrlicht after trying many engines and not getting on with them. I did quite well with unity, but I prefer C++ to C#; I have started reading about HLSL but it is hard to find ...
by Asimov
Wed Sep 05, 2018 10:08 pm
Forum: Beginners Help
Topic: Loading an OBJ coming out black
Replies: 19
Views: 2884

Re: Loading an OBJ coming out black

Hi Cutealien, Thanks for the help. I only used directional lights because it was one of your suggestions. I was quite happy with the point light. So for this project I am just going change it back to a point light and put a few point lights at the sides to light up the sides of my models. I do want ...
by Asimov
Wed Sep 05, 2018 7:23 pm
Forum: Beginners Help
Topic: Loading an OBJ coming out black
Replies: 19
Views: 2884

Re: Loading an OBJ coming out black

Hi cutealien, Well the whole room, the table and board are one model with multi sub textures. Here is the code I use to load my scene though. void LoadManager::loadScene(ISceneManager* smgr,IVideoDriver* driver,const wchar_t* modelname) {     mesh = smgr->getMesh(modelname);       ((scene::ISkinnedM...
by Asimov
Tue Sep 04, 2018 10:39 pm
Forum: Beginners Help
Topic: Loading an OBJ coming out black
Replies: 19
Views: 2884

Re: Loading an OBJ coming out black

Yes I tried 90,-90,180 and I even put in a key to rotate the light around all the way, and the board always stays black with the directional light. By the way anything other than 90 and the table is in darkness so I know 90 is the correct direction. I think if the light was pointed upwards I wouldn'...
by Asimov
Tue Sep 04, 2018 10:22 pm
Forum: Beginners Help
Topic: Loading an OBJ coming out black
Replies: 19
Views: 2884

Re: Loading an OBJ coming out black

Hi cutealien, Well I thought I had put a direction light in the scene, but it was actually a point light because I had forgotten to put the setLightData line in. There is however a problem. Obviously I have only one light at this point and I know I need more, but the problem is this. I add one point...
by Asimov
Sun Sep 02, 2018 11:27 am
Forum: Beginners Help
Topic: Loading an OBJ coming out black
Replies: 19
Views: 2884

Re: Loading an OBJ coming out black

Hi cutealien, Just put one direct light in the scene which seems to give better light than the point light. So I am setting up some controls to move my light around via keyboard so that I can fine tune it. Going to echo the coordinates to the screen and get my light in the right position. Will let y...