Search found 26 matches

by JuicyLobster
Sat Jun 20, 2009 2:59 pm
Forum: Beginners Help
Topic: Area Damage for Rockets, Grenades etc.
Replies: 11
Views: 982

well a "sphere" could be thought as a distance to target really. if "this node" is "this far" from "impact position" then apply "this damage" You could then depending on the distance between positions of the node and impact spot set a fall off damage...
by JuicyLobster
Fri Jun 19, 2009 8:06 pm
Forum: Beginners Help
Topic: Rotation Problem - Pitch not relative?
Replies: 1
Views: 246

Rotation Problem - Pitch not relative?

Im creating a 3rd person camera for my project using an invisible scene node as the parent that follows the players object/character with a camera scene node attached as a child. As the parent is rotated the camera will relatively be rotated automatically. Heres the current Camera class source as to...
by JuicyLobster
Thu Jun 18, 2009 11:02 pm
Forum: Code Snippets
Topic: (C++) Simple to use Event Receiver class for Irrlicht 1.3
Replies: 70
Views: 49607

edit: opfh, there we go, forgot to do device->setEventReceiver()...

had to add a mouseHasMoved() method too, but all in all thanks.
by JuicyLobster
Thu Jun 18, 2009 8:10 pm
Forum: Beginners Help
Topic: irrlicht's string class template [Solved]
Replies: 11
Views: 391

yup, thanks again, solved.
by JuicyLobster
Thu Jun 18, 2009 8:05 pm
Forum: Beginners Help
Topic: irrlicht's string class template [Solved]
Replies: 11
Views: 391

yup it seems to be the case (finally :D)

Can only assign one array of chars per += operator. Else it will change the value of the text being concatonated;
by JuicyLobster
Thu Jun 18, 2009 7:51 pm
Forum: Beginners Help
Topic: irrlicht's string class template [Solved]
Replies: 11
Views: 391

still not showing. I've always used the last 2 arguments as 0 because it seemed they werent being used. If I substitute the mxy.c_str() with L"Test123" it shows. Something wrong with the string somewhere edit: could it be that using += 123 + L", " + 456 is just adding up the char...
by JuicyLobster
Thu Jun 18, 2009 7:32 pm
Forum: Beginners Help
Topic: irrlicht's string class template [Solved]
Replies: 11
Views: 391

string<wchar_t> mxy; mxy += 123 + L", " + 456; fWhite->draw(mxy.c_str(),rect<s32>(50,100,0,0),SColor(255,255,0,0)); Tried that instead of using the functions to return mouse position (think that was crashing it). However the text draw function is not drawing any of the string values.
by JuicyLobster
Thu Jun 18, 2009 7:02 pm
Forum: Beginners Help
Topic: irrlicht's string class template [Solved]
Replies: 11
Views: 391

oh so thats how you use templates? Makes sense to me now, thanks :D string<wchar_t> mxy; mxy = input->mouseX() + L", " + input->mouseY(); fWhite->draw(mxy.c_str(),rect<s32>(50,100,0,0),SColor(255,255,0,0)); btw, it didnt crash because it did not compile, I only said I tried to compile :win...
by JuicyLobster
Thu Jun 18, 2009 6:30 pm
Forum: Beginners Help
Topic: irrlicht's string class template [Solved]
Replies: 11
Views: 391

irrlicht's string class template [Solved]

Im new to c++, I usually use C# and java. What I am trying to do is place mouse x and y position values on the screen. The problem is in c/c++ u cant add strings togeather, and for the font draw function it requires a wide character. Heres what I tried: string* mxy; mxy->append(input->mouseX()); mxy...
by JuicyLobster
Mon Jun 08, 2009 11:00 pm
Forum: Code Snippets
Topic: (HLSL) Cel (Toon) Shading
Replies: 66
Views: 52371

Odd, getting a celshading.exe has encountered a problem and needs to close type of error at startup. I tried compiling the program myself and fiddling around with a few things, even commenting out the shader parts because my video card is only shader 2.0 (which I assume would be fine though?). Anyon...
by JuicyLobster
Wed Dec 24, 2008 10:15 pm
Forum: Beginners Help
Topic: Outlining Fonts
Replies: 3
Views: 404

Alright, instead of using an alpha png that generates no XML file for the font, I went to bmp, with a purple colour key, and black outline on the white text. (this way no matter what colour used the font will always be outlined in black.) Now, a new problem arises. The spacing overlaps other charact...
by JuicyLobster
Wed Dec 24, 2008 5:19 am
Forum: Beginners Help
Topic: Outlining Fonts
Replies: 3
Views: 404

Outlining Fonts

I've been playing around with the font library and such, and I have come to the conclusion that I need to either make my own font class, ask here just in case, and ask if there is already a font class that can do this that someone might know of. What I am trying to do is something like this: http://...
by JuicyLobster
Tue Jun 24, 2008 8:11 am
Forum: Beginners Help
Topic: add static text problem
Replies: 10
Views: 1019

When using the new font tool you have to load the .xml file, just as the docs tell you Maybe another candiadte for the FAQs - ah, should be already in but people simply skip over it... Ok, got it to work now, but how about font colour/style? Shouldn't it be using the patterns of the image file? All...
by JuicyLobster
Tue Jun 24, 2008 5:52 am
Forum: Beginners Help
Topic: add static text problem
Replies: 10
Views: 1019

hmmm, anyone have a history of font tool in the bin folder of irrlicht not working?
by JuicyLobster
Mon Jun 23, 2008 9:38 pm
Forum: Beginners Help
Topic: add static text problem
Replies: 10
Views: 1019

console says the amount of upper corner pixels or lower corner pixels is == 0, font file may be corrupted...