View previous topic :: View next topic |
Author |
Message |
d1dave DeleD PRO user
Joined: 20 Apr 2006 Posts: 10
|
Posted: Thu Apr 20, 2006 3:36 pm Post subject: Working with Prefabs |
|
|
I've been trying to make some modular pieces to make buildings with (varied wall sections, corner pieces, stairs, etc), and save them all as prefabs so I can just plug them all together to make up some complete buildings without having to do each building from scratch. I have been making each section using cubes basically like lego's and deleting all of the non visible faces of each cube and then merging a whole wall together and saving as a prefab. When I do this it looks fine and each piece seems to export to blitz and show up in my game with no trouble. If I don't merge the pieces and I try to export to blitz to view in my game then I get a memory access violation error in my game so if I just go back and merge it and re-export then it loads up fine and looks fine in the game. That is for each individual piece I build.
The problem comes when I try to put the pieces all together after they have been saved as prefabs. I load up four walls and four corners and line them all up snapped to grid and everything looks great. Then I try to select everything and merge it all together so it will work in my game and it all goes crazy. Some of the walls disappear completely, and sometimes just some of the pieces so I see like the four corner sections partially but nothing else.
If I make all of the pieces seperate just exactly the same in one session without making them prefabs and then line them up and merge them, while still in the same session, everything seems to work fine and export into my game fine but that is not really much of a time saver unless I build all the pieces in one file so that when I open it I can just use what I need then delete all of the extra pieces but that doesn't seem like the right way.
Things I've tried:
Not deleting the non-visible faces and saving to prefabs....same problem
Tested it with the pieces triangulated and not.......same problem
Built the pieces all in the same session and put them together not as prefabs....worked but not practical really
Tried the union option since I didn't know what it did...collapsed everthing into one cube
I am very new to modeling, ok complete beginner, and I may be doing everything wrong from building it, to merging it, to texturing it. Can anyone tell me where I'm going wrong here or how I can accomplish this? I just want to use DeleD to make some buildings complete with interiors to use in my game. Once I see that I can complete a whole building and get it into my game properly I want to buy the full version because subtraction would make life much easier and it has been the easiest modeler I've used to far. Tested Milkshape, Blender, Gamespace, and Wings and DeleD has been the most user friendly but I haven't quite been able to get it to do what I'm hoping for.
Thank you,
Dave |
|
Back to top |
|
|
granada Team member
Joined: 07 Aug 2004 Posts: 1955 Location: England
|
Posted: Thu Apr 20, 2006 3:49 pm Post subject: |
|
|
Hi there Dave.
Have you downloaded the latest version !.
Dave _________________ AMD Phenom(tm)IIx6 1090t Processor 3.20 GHS
8.00 GB memory
Windows 7 64 bit
Nvida Geforce GTX 580 |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Thu Apr 20, 2006 3:57 pm Post subject: |
|
|
Hey there Dave, and welcome!
Indeed, have you downloaded the latest version of DeleD, including the latest version of the Blitz exporter?
I'd very much like to take a look at your prefabs and see if I can reproduce this problem here. Would you mind sending them to my emailaddress specified in my profile? Thanks! |
|
Back to top |
|
|
d1dave DeleD PRO user
Joined: 20 Apr 2006 Posts: 10
|
Posted: Thu Apr 20, 2006 4:18 pm Post subject: |
|
|
Wow, fast responses. Thanks guys. I'll try the new version tonight when I get home and see what happens and update this thread. I am currently using the previous version I downloaded a couple of weeks ago. If I still have the same trouble I will send you the prefabs. They really are just some simple block sections made up of smaller blocks to form windows and moulding and stuff. I know I can do the moulding with custom skins or something but it made it so much easier just to make it a separate object and these buildings will be so low poly to start with it doesn't really hurt in that area and my art skills stink. Should I be saving them WITHOUT textures as prefabs maybe?
Thanks again,
Dave |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Thu Apr 20, 2006 6:54 pm Post subject: |
|
|
Quote: |
The problem comes when I try to put the pieces all together after they have been saved as prefabs. I load up four walls and four corners and line them all up snapped to grid and everything looks great. Then I try to select everything and merge it all together so it will work in my game and it all goes crazy. Some of the walls disappear completely, and sometimes just some of the pieces so I see like the four corner sections partially but nothing else. |
I am not sure if I understand what you're saying here. I just made some simple objects, saved as prefabs, loaded them up, merged them and everything was just fine. Or do you mean things go wrong in your game?
Anyway, your idea about creating prefabs and using them like you planned is certainly the way to go! If this doesn't work for you because of some technical reason, we certainly would like to know about it! |
|
Back to top |
|
|
d1dave DeleD PRO user
Joined: 20 Apr 2006 Posts: 10
|
Posted: Fri Apr 21, 2006 1:30 am Post subject: Update |
|
|
Ok, new problem. I updated my DeleD Lite with the new version from the link on the front page. Version 1.42 LITE it says in the software. I opened a new project and dropped in my prefabs, lined them up and hit merge and nothing vanished but at that point I realized the wall sections weren't quite lined up to the grid. I thought maybe it was because those prefabs were made in a different version so I performed the following test.
Opened a new project.
Pressed 2 to set my grid size.
Created a cube 40 squares wide, 20 tall, and 2 deep all snapped to grid.
Exported it as a DeleD prefab.
Opened a new project.
Inserted the prefab cube I created and it doesn't snap to grid anymore. All of my prefabs did before I updated DeleD. It seems that the object has grown very slightly as well.
Ok, tried one more thing, if I select the prefab object and tell it to snap selection to grid in object mode it doesn't work but I can use edge mode and work around it sort of.
Any ideas?
Dave |
|
Back to top |
|
|
d1dave DeleD PRO user
Joined: 20 Apr 2006 Posts: 10
|
Posted: Fri Apr 21, 2006 1:37 am Post subject: |
|
|
More testing. Snap to grid - selection doesn't do anything with the previously created cube prefab. I have to use snap to grid - entire scene to get it to work.
Dave |
|
Back to top |
|
|
Daaark DeleD PRO user
Joined: 01 Sep 2004 Posts: 2696 Location: Ottawa, Canada
|
Posted: Fri Apr 21, 2006 2:25 am Post subject: |
|
|
d1dave wrote: |
More testing. Snap to grid - selection doesn't do anything with the previously created cube prefab. I have to use snap to grid - entire scene to get it to work.
Dave |
You can right clic on any object, including a prefab that was placed and assign it a different snapping mode. Not every object will have vertex snapping. PRefabs and merged objects will not have a snapping mode set so that nothing bad happens to the object on creation, it's left up to you.
If you vertex snap a small object on a large grid, bad things will happen to it. _________________
|
|
Back to top |
|
|
d1dave DeleD PRO user
Joined: 20 Apr 2006 Posts: 10
|
Posted: Fri Apr 21, 2006 5:36 am Post subject: |
|
|
Vampyre_Dark wrote: |
d1dave wrote: |
More testing. Snap to grid - selection doesn't do anything with the previously created cube prefab. I have to use snap to grid - entire scene to get it to work.
Dave |
You can right clic on any object, including a prefab that was placed and assign it a different snapping mode. Not every object will have vertex snapping. PRefabs and merged objects will not have a snapping mode set so that nothing bad happens to the object on creation, it's left up to you.
If you vertex snap a small object on a large grid, bad things will happen to it. |
Thank you Vampyre_Dark. I changed the snap method to center on each prefab as I loaded them and they are back to popping right into place. Everything lined up perfect with my wall sections and corner sections. Is there any way to save the snapping method to the prefab so I don't have to modify it each time?
Anyway, I used the few building parts I had already made and assembled a small house and merged it all together with no problem and no faces vanishing in the process. I imported it into my game and everything looks great, all nice and square. I guess the DeleD update fixed the problem with the vanishing parts.
Dave |
|
Back to top |
|
|
Jeroen Site Admin
Joined: 07 Aug 2004 Posts: 5332 Location: The Netherlands
|
Posted: Fri Apr 21, 2006 8:14 am Post subject: |
|
|
d1dave wrote: |
Thank you Vampyre_Dark. I changed the snap method to center on each prefab as I loaded them and they are back to popping right into place. Everything lined up perfect with my wall sections and corner sections. Is there any way to save the snapping method to the prefab so I don't have to modify it each time?
Anyway, I used the few building parts I had already made and assembled a small house and merged it all together with no problem and no faces vanishing in the process. I imported it into my game and everything looks great, all nice and square. I guess the DeleD update fixed the problem with the vanishing parts.
Dave |
Glad to hear the problem is solved! About the snapmethod for prefabs: usually prefabs are complicated objects with which you wouldn't want to use vertex snapping. For example, use vertex snapping on a sphere and you'll see what I mean. That is why the snapmethod is always set to none, like VD said. However, we can expand the export to prefab function, allowing you to set some properties of the object. Added to our TODO list, although at a low priority at this time. Thanks! |
|
Back to top |
|
|
granada Team member
Joined: 07 Aug 2004 Posts: 1955 Location: England
|
Posted: Fri Apr 21, 2006 10:44 am Post subject: |
|
|
Quote: |
I imported it into my game and everything looks great, all nice and square. I guess the DeleD update fixed the problem with the vanishing parts.
|
Thats cool,how about some ingame pics .
Dave _________________ AMD Phenom(tm)IIx6 1090t Processor 3.20 GHS
8.00 GB memory
Windows 7 64 bit
Nvida Geforce GTX 580 |
|
Back to top |
|
|
d1dave DeleD PRO user
Joined: 20 Apr 2006 Posts: 10
|
Posted: Fri Apr 21, 2006 2:40 pm Post subject: |
|
|
Thank you everyone for the assistance. I'm so new to this all that when I have a problem I wonder is it me doing something wrong first or the software second. I understand why you wouldn't want to snap some complex items to the grid but it would be a nice option in some cases so I'll be looking forward to that addition. My prefabs are fairly simple at the moment so the buildings don't look all that great, but now that I've got the kinks worked out I'll build a full set with better detail and make some buildings and get some in game screenshots soon. Now that I know DeleD will work for me I'll be buying the full version. Hopefully nothing gets messed up when I install it.
As I said previously, I changed the snap method on my prefabs to center. The other two options were none and vertex I think. What is the difference? Should I be using vertex instead? When I create a new cube it is set to vertex by default I think.
Thank you all,
Dave
Edit: Yay me, proud new owner of PRO version. Can't wait to get home and try it. |
|
Back to top |
|
|
|