Welcome Guest [Log In] [Register]
We hope you enjoy your visit.


You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.

Join our community!

If you are already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
2D Hybrid collision; how can i make 2d collisions w U3D
Topic Started: Jul 6 2006, 10:57 AM (456 Views)
Mampf
Member Avatar
Member
[ *  * ]
Hi guyz,
I have a little project i am working on:
it is called "Captain on Deck" and should be similar to Star Trek: Bridge Commander(u might know it)

Well i want to use 2D sprites for the Bridge environment, cause it looks prettier than the blurry renderer of U3D(cool Bryce 5 renders DO!).
Well the problem is:
I need 2D collision checking for the game (if possible precise collchecking)
and it would be VERY cool if i could use GMs Collision checker.

Any Idea how i can use GM U3D hybridical?

If i can't i'll have to switch to gm6.1 and register it. so i can use their 3D features, then :U3D: :skull: for a while
Offline Profile Quote Post Goto Top
 
Despellanion
Member Avatar
Forum God
[ *  *  *  *  *  * ]
If I remember correct, Dr.Best told me that regular collision with GM's sprites should work.
Offline Profile Quote Post Goto Top
 
Mampf
Member Avatar
Member
[ *  * ]
Can somebody tell me how?
Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
Use the U3D function SwitchView to disable the Ultimate 3D rendering and you are done.
Offline Profile Quote Post Goto Top
 
Guest
Unregistered

well....but then i can't use the 2D funcs of u3d, can I?

if so this tip was useless,
the problem is, that I WANT to use the :U3D: 2D drawing functions but use the good collision functions of GM.
Quote Post Goto Top
 
57E
Member Avatar
Forum Leader
[ *  *  *  *  * ]
Guest
Jul 11 2006, 10:23 PM
well....but then i can't use the 2D funcs of u3d, can I?

if so this tip was useless,
the problem is, that I WANT to use the :U3D: 2D drawing functions but use the good collision functions of GM.

Then just remove u3d collision scripts from collision events and use game maker collisions, like other.x=other.xprevious, instead.

Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
I don't get where's your problem. GM's precise collision checking works as usual when using U3D. If you want to draw your stuff with U3D and check for collisions with GM you simply have to make every graphic once as sprite and once as texture. Then you can position an object that uses the sprite at the position where it gets drawed in U3D to do the collision checking and finally you use DrawTex or DrawTexEx to draw it in the U3D view.
Offline Profile Quote Post Goto Top
 
57E
Member Avatar
Forum Leader
[ *  *  *  *  * ]
Quote:
 
GM's precise collision checking works as usual when using U3D.

I didn't know that. Perhaps this line from tutorial need's to be removed.

Quote:
 
I don't know why but if you use Ultimate 3D you can't use Precise collision checking. Disable it in the sprites.

Offline Profile Quote Post Goto Top
 
Dr. Best
Member Avatar
Administrator
[ *  *  *  *  *  * ]
Oh, you are right. This line isn't current. It didn't work in previous versions, but now it's working. Sorry for the wrong information, I'm gonna correct that in the next version of the helpfile.
Offline Profile Quote Post Goto Top
 
« Previous Topic · Questions about Ultimate 3D · Next Topic »
Add Reply