| 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: |
| Switching ROOMS!; Here's the solution that works | |
|---|---|
| Topic Started: Nov 30 2007, 01:04 AM (2,768 Views) | |
| Dr. Best | Jul 10 2008, 12:36 PM Post #16 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Well, probably Ultimate 3D writes data behind the ends of some buffer, when loading some of your models or creating some other type of objects. This would lead to an unhandled exception at the destruction of this object, so as you end the game it crashes. Make sure that you are using the fixed version of Ultimate 3D 2.1 final. If you do so you can send me your complete project or a reduced version of it, which causes the same problem. Then I could find the cause of the problem and fix it. |
![]() |
|
| Gandalf20000 | Jul 10 2008, 03:05 PM Post #17 |
![]()
Enormous DirectX Newbie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Here is the file. Thank you in advance. |
| |
![]() |
|
| Dr. Best | Jul 10 2008, 03:31 PM Post #18 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You have to be more precise, when explaining problems. You said the game crashes with the code you posted, but (at least on my PC) it did not. It just did not give any new visual output. To fix this you have to use the following code instead of your code.
|
![]() |
|
| Gandalf20000 | Jul 10 2008, 04:01 PM Post #19 |
![]()
Enormous DirectX Newbie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
THANK YOU! It finally works!
|
| |
![]() |
|
| Eansis | Sep 6 2008, 02:13 AM Post #20 |
|
Way Cool
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Make sure you inititialize ta variables!!
|
|
Do you want TONS of free games? Gameboy, Gba, N64 and even sega genesis games, including mods for games and obscure games in your browser for free? This is not an advertisement. Vizzed has all of this, AND MORE (including a FREE retro toons room!) Oh, and here is how you can go to it: http://www.vizzed.com/vizzedboard/retro/ Again, this is completely free, so enjoy your stay. | |
![]() |
|
| Synexn-Prime | Nov 17 2008, 06:35 AM Post #21 |
|
Call me Skarik
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I just thought I'd give out what I do in my game. First of all, I have a *totally tricked out* control object for U3d set to persistent. I also set all of my PSS's to persistent, as guessable from the u3d_type line. After all that, and all my "system" objects are set to persistent (e.g. fmod, 39dll, physx) I can just call the following function. If you have Destroy() being called in the destroy event for an object, it won't cause any problems since Destroy() only destroys when a valid U3D object is available.
I use this when going from one U3D room to another U3D room. (e.g. A 3d Menu to Game Level) Edited by Synexn-Prime, Nov 17 2008, 06:36 AM.
|
![]() ![]() ![]() Current Stone: Water : Prepare to help her survive. Sometime 2010. | |
![]() |
|
| blackhawk | Jan 11 2009, 08:00 PM Post #22 |
![]()
Elite Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Okay, this works fine. I just need help with the following: I have got my 2D Menu. It has a "Shop" button and a "Play" button. When i switch to the shop, it opens a 2D room, and initializes U3D with the following code:
With all the other stuff on top of it ofcourse. This works just fine. Now i have a 2D room with a small 3D view, to view the models in. (of e.g. selected weapons). I can switch the room and stuff, using SwitchView(), all works fine. But now when i play the game, it needs to be initialized with other x/y and width/heights. Like this:
ofcourse this script does not get executed when i visited the shop, because of the global.u3d_initialized variable. So, when i then press play, it starts the rendering frame in the shop-frame, if you know what i mean. Is there a way to change the rendering frame's width/height and x/y? Or is there a way to re-execute the script? Because when i re-run this script the whole U3D thing just freaks out, wich isn't wierd afterall.. So, does anybody know how to fix this? |
|
Omg you guys this is SO AWESOME Check this shit out. How the hell is THAT possible? | |
![]() |
|
| Dr. Best | Jan 11 2009, 08:44 PM Post #23 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try adding global.u3d_initialized=false; to the destroy event of the control object. Then destroy and recreate it. That should work, even though you will lose all loaded models, textures, etc. and it will take a while. If losing all these things is not tolerable just do all the drawing with Ultimate 3D. P.S.: So does the forum work permanently for you now? |
![]() |
|
| blackhawk | Jan 11 2009, 09:09 PM Post #24 |
![]()
Elite Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Ill try it out. Thanks! BTW: No it does not work. I currently using a proxy.. I think something is wrong in your database, something with my IP.. i dont know. |
|
Omg you guys this is SO AWESOME Check this shit out. How the hell is THAT possible? | |
![]() |
|
| blackhawk | Jan 11 2009, 11:40 PM Post #25 |
![]()
Elite Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Hmm. Im now going to try it out, but, dont i need to free the DLL from the memory to prevent memoryleaks? |
|
Omg you guys this is SO AWESOME Check this shit out. How the hell is THAT possible? | |
![]() |
|
| Dr. Best | Jan 11 2009, 11:43 PM Post #26 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Well, yeah, it is probably better to do this using external_free("Ultimate3D.dll");. Not much of a problem anyway, is it ?P.S.: I will try to get you some help with the domain problem. Apparently something is wrong in the data of your DNS server. Nazle has the same problem and she appears to have the same ISP in a similar region. |
![]() |
|
| blackhawk | Jan 11 2009, 11:49 PM Post #27 |
![]()
Elite Member
![]() ![]() ![]() ![]() ![]() ![]()
|
yeah.. but when i call external_free the game crashes. |
|
Omg you guys this is SO AWESOME Check this shit out. How the hell is THAT possible? | |
![]() |
|
| blackhawk | Jan 12 2009, 12:00 AM Post #28 |
![]()
Elite Member
![]() ![]() ![]() ![]() ![]() ![]()
|
BTW: Your way doesn't work either.. i still use SwitchView() and the whole if u3d_type==0 then {destroy() } stuff, i just added the global.u3d_initialized=false under the SwitchView. That should work shouldn't it? |
|
Omg you guys this is SO AWESOME Check this shit out. How the hell is THAT possible? | |
![]() |
|
| Dr. Best | Jan 12 2009, 12:25 AM Post #29 |
|
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Nope, because then you are not calling global.u3d_cleanup. You should destroy the control object, that would be most logical. |
![]() |
|
| blackhawk | Jan 12 2009, 03:37 PM Post #30 |
![]()
Elite Member
![]() ![]() ![]() ![]() ![]() ![]()
|
Ok, ill try again with calling the cleanup function
|
|
Omg you guys this is SO AWESOME Check this shit out. How the hell is THAT possible? | |
![]() |
|
| Go to Next Page | |
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://209.85.48.18/static/1/pip_r.png)








?
5:00 AM Sep 3