Search found 1654 matches

by arras
Tue Apr 06, 2010 6:36 pm
Forum: Beginners Help
Topic: Collision optimization
Replies: 12
Views: 1045

Well, that depends. You need to compute distance of two spheres (center to center) than compare that to sum of their radiuses when you compute sphere collision. Distance is computed using square root which is quit expensive: dis = sqrt(X*X + Y*Y + Z*Z) You can compare squared distance to sum of squa...
by arras
Sat Apr 03, 2010 6:04 pm
Forum: Off-topic
Topic: Merchants of Cool
Replies: 0
Views: 535

Merchants of Cool

by arras
Wed Mar 31, 2010 4:09 pm
Forum: Beginners Help
Topic: setAbsolutePosition()
Replies: 12
Views: 753

My be code I posted here can help you somehow:
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=35341
by arras
Sun Mar 28, 2010 12:33 pm
Forum: Advanced Help
Topic: How do I rotate a vector?
Replies: 1
Views: 396

Are you sure it is not GIMBAL LOCK?
by arras
Sat Mar 27, 2010 9:35 pm
Forum: Everything 2d/3d Graphics
Topic: Animation references
Replies: 1
Views: 728

Animation references

Some good running circle / walking circle animations plus some others:
http://www.pond5.com/video-sound-effect ... 718_1.html

Can be downloaded in low res but still usable for reference when animating.
by arras
Sat Mar 27, 2010 2:18 pm
Forum: Beginners Help
Topic: Collision optimization
Replies: 12
Views: 1045

If you plan to do some serious collision on large scale than you should made your own collision manager. There are many things you can do to optimize collision detection and response and it largely depend on character of your project. few things as an example: First thing is of course to prevent col...
by arras
Wed Mar 24, 2010 4:45 pm
Forum: Beginners Help
Topic: reverse of getScreenCoordinatesFrom3DPosition?
Replies: 17
Views: 997

shouldn't I be using getIntersectionWithLine? Depends. If you want your line to intersect only with objects visible by camera, use getIntersectionWithLimitedLine. Otherwise use getIntersectionWithLine. However you may pick objects/planes which are actually above your camera (I was not testing that ...
by arras
Wed Mar 24, 2010 8:00 am
Forum: Beginners Help
Topic: Constant iterator error
Replies: 4
Views: 281

I see. But why second function definition works. "it" is also ConstIterator: const wchar_t* MGUIListBox::getSelectedItemText() const { core::list<ListItem>::ConstIterator it = Selected; return (*it).Text; } And what would be correct way of getting text out of list item? Should I declare fu...
by arras
Wed Mar 24, 2010 7:52 am
Forum: Beginners Help
Topic: reverse of getScreenCoordinatesFrom3DPosition?
Replies: 17
Views: 997

Well I was not verifying it in any way but getIntersectionWithLimitedLine tests intersection of plane with line between its start and end point so name is correct. It is limited line. In math line is not limited, it is defined by one point and vector and is infinite. You can also have half line for ...
by arras
Tue Mar 23, 2010 11:27 pm
Forum: Beginners Help
Topic: Constant iterator error
Replies: 4
Views: 281

It's set in onEvent() by user input ...I did stripe that class down to bare minimum. And that function actually looks like this (to return 0 if item was not selected): const wchar_t* MGUIListBox::getSelectedItemText() const { if(Selected == core::list<ListItem>::ConstIterator() ) return 0; return (*...
by arras
Tue Mar 23, 2010 11:07 pm
Forum: Beginners Help
Topic: reverse of getScreenCoordinatesFrom3DPosition?
Replies: 17
Views: 997

Ok. Now that should have been written at the beginning of this post. Here is simple example which place sphere on "ground plane" at mouse coordinates. Just click with mouse somewhere on the screen: #include <irrlicht.h> using namespace irr; class MEventReceiver : public IEventReceiver { pu...
by arras
Tue Mar 23, 2010 10:40 pm
Forum: Beginners Help
Topic: Constant iterator error
Replies: 4
Views: 281

Constant iterator error

Well say I have class like this: class MGUIListBox { struct ListItem { const wchar_t *Text; }; core::list<ListItem>::ConstIterator Selected; core::list<ListItem> List; public: virtual const wchar_t* getSelectedItemText() const; }; Now if function definition looks like this compiler throws error: pas...
by arras
Tue Mar 23, 2010 7:34 pm
Forum: Beginners Help
Topic: reverse of getScreenCoordinatesFrom3DPosition?
Replies: 17
Views: 997

Hmm, that code is bit confusing. By setting camera far plane to targetZ you use that Z coordinate in local space of camera. You wrote you want to set it in global space instead, right? Can you may be describe in some detail what you want to achieve in general? Are you trying to find point on terrain...
by arras
Tue Mar 23, 2010 7:29 pm
Forum: Project Announcements
Topic: [Help Wanted] Nethack 3D recruitment
Replies: 15
Views: 9915

Ok, just give me some time. I will look at the files (those are few years old projects of mine) and send you best I can find. May be I will be able to sent you even boned ones. Also let me know, what file format will suit you best. I can convert them in to most of the common formats: .x .obj .ms3d o...
by arras
Tue Mar 23, 2010 5:04 pm
Forum: Beginners Help
Topic: Game Scope
Replies: 3
Views: 251

Well, only way apart of either declaring something global or passing it as function argument is to use some kind of class which would hold all the declarations, including function. Can be some kind of "gamemanager".