Crystal Space
Welcome,
Guest
. Please
login
or
register
.
May 24, 2013, 03:19:59 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
9224
Posts in
2230
Topics by
5386
Members
Latest Member:
Salamutuu
Crystal Space
Crystal Space Development
Support
What does this warning mean?
« previous
next »
Pages:
[
1
]
Author
Topic: What does this warning mean? (Read 2945 times)
yoshi
Newbie
Posts: 40
What does this warning mean?
«
on:
June 12, 2006, 07:33:04 am »
(Using bleeding edge CS from about a month ago, win32libs r21, Windows XP Pro, ATI Radeon 9800).
WARNING! Suspicious: object with tag 'iEmitState' does not implement interface 'iEmitState'!
Thanks.
Logged
jorrit
Administrator
Hero Member
Posts: 1703
Re: What does this warning mean?
«
Reply #1 on:
June 12, 2006, 07:38:24 am »
Quote from: yoshi on June 12, 2006, 07:33:04 am
(Using bleeding edge CS from about a month ago, win32libs r21, Windows XP Pro, ATI Radeon 9800).
WARNING! Suspicious: object with tag 'iEmitState' does not implement interface 'iEmitState'!
Thanks.
That usually means you have another version of CS on your system and it is trying to use that instead.
Greetings,
Logged
yoshi
Newbie
Posts: 40
Re: What does this warning mean?
«
Reply #2 on:
June 12, 2006, 09:38:37 pm »
Thanks, but I'm pretty sure I only have one build of CS.
I requested the iEmitState interface by loading the "crystalspace.mesh.loader.emit" plugin then doing a
csRef<iEmitState> emitState = scfQueryInterface<iEmitState>(rainEmitter->GetMeshObject());
where rainEmitter is a MeshWrapper of a rainfall emitter mesh that was loaded from a world file. I was hoping to get its state and change a few settings, but it doesnt seem to work because emitState is null after that line.
In general, I would like to know if it is possible to set up an emitter and start and stop it programmatically (not from a file) so, for example, if I want rain, I can make the rain start and stop dynamically instead of being forced to make a given level always rainy. Thanks.
Logged
jorrit
Administrator
Hero Member
Posts: 1703
Re: What does this warning mean?
«
Reply #3 on:
June 12, 2006, 09:40:38 pm »
Quote from: yoshi on June 12, 2006, 09:38:37 pm
Thanks, but I'm pretty sure I only have one build of CS.
I requested the iEmitState interface by loading the "crystalspace.mesh.loader.emit" plugin then doing a
csRef<iEmitState> emitState = scfQueryInterface<iEmitState>(rainEmitter->GetMeshObject());
where rainEmitter is a MeshWrapper of a rainfall emitter mesh that was loaded from a world file. I was hoping to get its state and change a few settings, but it doesnt seem to work because emitState is null after that line.
In general, I would like to know if it is possible to set up an emitter and start and stop it programmatically (not from a file) so, for example, if I want rain, I can make the rain start and stop dynamically instead of being forced to make a given level always rainy. Thanks.
It doesn't work that way. You first have to create a emit particle system (for example using engine->CreateMeshWrapper()) and then you can use iEmitState. You can't get iEmitState from the plugin directly.
Greetings,
Logged
yoshi
Newbie
Posts: 40
Re: What does this warning mean?
«
Reply #4 on:
June 14, 2006, 05:47:57 am »
Jorrit-san, do you think you could give me a quick idea of how to make a little particle system from within code? I've checked the documentation, but it only seems to address how to get particle systems by loading them from map files; and I don't want to be restricted to just that.
I've tried so much for so long and consulted many sources, and I don't really want to get into it for fear of making the post too long. If you, or someone else who knows, could just give a quick little overview... that would be greatly appreciated. Mainly, I have trouble understand what the iEmit interfaces have to do with the whole system, even though they seem to be central to it.
Thanks, as always
Logged
jorrit
Administrator
Hero Member
Posts: 1703
Re: What does this warning mean?
«
Reply #5 on:
June 14, 2006, 05:51:01 am »
Check apps/walktest/walkdemo.cpp and go to the 'add_particles_rain' function there. It shows how to create the rain particle system. It is easy to extend to other types of particle systems.
Greetings,
Logged
yoshi
Newbie
Posts: 40
Re: What does this warning mean?
«
Reply #6 on:
June 16, 2006, 04:55:08 am »
Thanks a million.. I can't believe I didn't think of looking at walktest.. haha.
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Crystal Space Development
-----------------------------
=> General Crystal Space Discussion
=> Support
-----------------------------
Crystal Space Project Development
-----------------------------
=> Feature Requests
=> Plugins
=> Bug Reports
-----------------------------
Crystal Space Development
-----------------------------
=> Game Content Creation
-----------------------------
Miscellaneous
-----------------------------
=> Article/Tutorial Requests
=> Article/Tutorial Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Development Discussion
-----------------------------
Crystal Space Projects
-----------------------------
=> Project Discussion
=> WIP Projects
=> Finished Projects
-----------------------------
Associate Projects
-----------------------------
=> CEL Discussion
=> Crystal Core Discussion
=> CrystalBlend Discussion
-----------------------------
Crystal Space Project Development
-----------------------------
=> Google Summer of Code
-----------------------------
Associate Projects
-----------------------------
=> Apricot (Open Game)
=> Ares Project
Loading...