Search found 14 matches

by mistral
Tue Feb 28, 2017 4:09 pm
Forum: Beginners Help
Topic: Terrain Shadow Casting
Replies: 3
Views: 750

Re: Terrain Shadow Casting

Hi and thanks, I am after the actual terrain to cast shadows on itself. I tried simply casting the terrain to an animated mesh and enable the shadow volume, which compiled but promptly crashed when run. How would one achieve this "you can calculate the shadow volume of the terrain by yourself&q...
by mistral
Sun Feb 26, 2017 8:52 pm
Forum: Beginners Help
Topic: Terrain Shadow Casting
Replies: 3
Views: 750

Terrain Shadow Casting

Hi, Thought I'd found some threads on this before but not finding now. Is there a way for an ITerrainSceneNode to cast shadows? Even if this means having to copy out the mesh (e.g. what best method?) Usually I just use something like:           o->addShadowVolumeSceneNode();         o->setMaterialFl...
by mistral
Sun Feb 05, 2017 1:26 pm
Forum: Beginners Help
Topic: smgr->getMesh seg
Replies: 8
Views: 859

Re: smgr->getMesh seg

:D

Schoolboy error if I ever was!

A manager class wasn't checking for a valid pointer in its event handler.


Big thanks!


Oh, CuteAlien, I had a look at Tübingen online last night, looks very nice indeed!
by mistral
Sat Feb 04, 2017 1:30 pm
Forum: Beginners Help
Topic: smgr->getMesh seg
Replies: 8
Views: 859

Re: smgr->getMesh seg

Well - maybe your callstack in the debugger can give you some idea? It should at least be easy to see there if any pointers look strange (most likely pointer with troubles here is obviously "smgr"). What is the "named method of loading media and reusing"? Sorry, i'm not getting ...
by mistral
Fri Feb 03, 2017 2:02 pm
Forum: Beginners Help
Topic: smgr->getMesh seg
Replies: 8
Views: 859

Re: smgr->getMesh seg

Yeah that's been my dilemma... nothing has changed to that (surrounding) code, also this has appeared before and disappeared. That line is so fundamental, I am sure it works, just confused where else to look now. But I'll take your advice and rip it apart, it'll only get stronger. Something I have p...
by mistral
Thu Feb 02, 2017 1:16 pm
Forum: Beginners Help
Topic: smgr->getMesh seg
Replies: 8
Views: 859

smgr->getMesh seg

Every now and again I don't seem to be able to load anything using the following, it just segs. I've tried different model formats, with and without animation keys, no compression. The variable smgr appears to be valid. I'm at a loss at what to try :D   IAnimatedMesh *mesh = smgr->getMesh("medi...
by mistral
Tue Jan 31, 2017 7:38 pm
Forum: Beginners Help
Topic: IGUIEditBox: set scroll pos
Replies: 3
Views: 467

Re: IGUIEditBox: set scroll pos

Code: Select all

 
    irr::SEvent evt;
    evt.EventType = irr::EET_KEY_INPUT_EVENT;
    evt.KeyInput.Control = true;
    evt.KeyInput.PressedDown = true;
    evt.KeyInput.Key = irr::KEY_END;
    eb_log->OnEvent(evt);
 
by mistral
Tue Jan 31, 2017 7:25 pm
Forum: Beginners Help
Topic: IGUIEditBox: set scroll pos
Replies: 3
Views: 467

Re: IGUIEditBox: set scroll pos

Very good, I like it, thanks!
by mistral
Tue Jan 31, 2017 5:54 pm
Forum: Beginners Help
Topic: Client/Server MMO
Replies: 12
Views: 1760

Re: Client/Server MMO

CuteAlien wrote:Did you disable nagle algorithm on tcp? It's a flag you can set - and if you don't disable it then tcp will only send out data once a certain buffer is filled. For games it's essential to disable that flag.

Nice tip!
by mistral
Tue Jan 31, 2017 5:53 pm
Forum: Beginners Help
Topic: IGUIEditBox: set scroll pos
Replies: 3
Views: 467

IGUIEditBox: set scroll pos

Hi,

How do you set the scroll position of the edit box without using cursor keys?
(Not after scroll bar usage, just how to set within IGUIEditBox)

Thanks
by mistral
Thu Jan 26, 2017 10:08 pm
Forum: Beginners Help
Topic: User Data in Node
Replies: 3
Views: 537

Re: User Data in Node

That's sort of what I've done, have an Obj class with pointer(s), etc...

Thanks
by mistral
Thu Jan 26, 2017 4:58 pm
Forum: Beginners Help
Topic: User Data in Node
Replies: 3
Views: 537

User Data in Node

Hi,

Did I read somewhere that you can store data in a scene node? Or was that only for xml save / load?


Thanks
by mistral
Tue Jan 24, 2017 7:14 am
Forum: Beginners Help
Topic: Repeated IGUIImage
Replies: 3
Views: 444

Re: Repeated IGUIImage

Thanks, but I'm not finding "setSourceRect" or something similar in either IGUIImage or ITexture.


If this not available, would it be better to generate an image and use that or to instead use numerous IGUIImages using the original image tile?
by mistral
Mon Jan 23, 2017 9:39 am
Forum: Beginners Help
Topic: Repeated IGUIImage
Replies: 3
Views: 444

Repeated IGUIImage

Hi,

I can repeat a texture using a material, but is there way to do same for a gui window background / image?

Thanks