3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1] 2

Author Topic: Tutorial: Create a Walk/Drive Friendly Terrain and Draw Roads (TerrainShaderEd)  (Read 11112 times)

« on: February 17, 2010, 01:48:38 PM »
Software

You need following software to complete this tutorial :

- 3DRad 6.41 or later (freeware from March 2010, donorware ($5) pre-March 2010)
- L3DT v2.8 standard or later (freeware)
- FragMotion v0.96 or later (shareware, but work with nags forever)
- Paint.NET - Very extensive paint software, comparable to Photoshop (freeware)
- RadImp - Very fast 3dRad importer (freeware)
- TerrainShaderEditor v0.5 (freeware)


STEP 1 Create Terrain

Designing a simple and drive/walk friendly terrain in L3DT Standard v2.8 (freeware)

Usually does L3DT default creates a very unfiendly terrains, not very suitable for walking/driving (too bumpy)
Here is a approach that takes 15 minutes to do.

1. Open L3DT
2. Click New Map
3. Choose Blank Designable Map
4. Heightfield => Choose Width=512, Height=512, Horizontal Scale=1
5. HF/DM ratio=64 (default)
6. It should now look like this :




7. Click the Edit Button (the one with a pencil on it)



Check Altitude=25
Check Terraces and set slider to the far right
Check Erosion and set slider to the middle

Draw around the outline, maybe add a few variations, also create some blocks in the middle.

It should look something like this :



8. Change edit settings

Check Altitude=50 and leave the rest as it is.

9. Draw a box in the middle over one of the previous like this :



10. Now clik the Calc button, and check only Heightmap

It should look something like this :




12. To be able to make roads, we need to calculate a lightmap so we can "draw" roads.

- Click the Calc button
- Check Attributes Map
- Check Normals Map
- Check Light Map
- Check TextureMap (we dont really need this except for exporting as obj later)

Click Next,Next, Uncheck Water Effects, Then Click OK

You should now have something like this in the Lightmap Tab



13. While in the Light Map, Click the Edit button (Pencil)

Set Radius = 10
Colour = : RED

Now draw yourself a nice red road, like this :



14. Click the Heightmap Tab
15, Click the Edit button (Pencil) - Sapphire will now start
16. In the menus goto Options->TErrain->Select Texture and Choose LM, click ok

It should now look like this :



17. Now click the Walk button, use WASD to walk and RightMouse+mouse to navigate.
18. Select the Smooth in the Heightfield Toolbar
19. Use middle mouse to adjust the size of the tool to the road size
20. Now smooth your road and make sure its not very bumpy, you can also use the bulldozer tool to remove ugly bumps.




When you're happy just close the Sapphire window.

21. Click the Light Map Tab, Ctrl+E save the image as a jpg (we'll use this later)

22. Export the Terrain as OBJ+mtl and convert to .x (described here in Step 11-18)   http://www.3drad.com/forum/index.php?topic=3076.msg23740#msg23740

Close L3DT

STEP 2 - Draw Roadmap for The TerrainShaderEditor

1. Start Paint.NET
2. Open the saved Light Map image you saved in previous section
3. Menu:Image->Resize   Set 1024x1024   (Because roadmap is UV wrapped, the bigger resoulution creates better results.
4. Menu:Layers->Add New Layer
5. Choose the Line/Curve Tool   ==> Set Brush Width to 30 (about the same size as the red road at 1024x1024)
6. set front color to white.
7. Carefully line/curve over the red road (make sure you are in Layer2)

Like this :

You can curve the line by dragging in the 4 points, press enter and add section around so it completes the road.



8. Now.. Delete Layer1, Click BackGround in the Layer window and click the red X

9. When you're done it should look like this :



10. Now we need to create white edges and a center line..

11. Resize image to 2048x2048

12. Select the PaintBcket Tool   Fill:Solid   Tolerance : 20%
13. Select a gray color (the one next to the black in the Color Panel.
14. Fill the road.
15. Draw center lines using the Line/Curve tool, color white, brush size 1
16. Many:Effects->Blurs->Gaussian Blur  (Radius 2)

It should look like this in the end :



17. Menu:Image->Flip Vertical

18. Save as .DDS (DirectDrawSurface)  Choose DXT5, click ok

19. Close Paint.NET

20. Now start the TerrainShaderEditor, load your mesh and road (Load T button next to Road UV).

It should be something like this using the default textures in the editor.



Voila.. (I think)
« Last Edit: February 19, 2010, 01:08:18 PM by shadmar »
« Reply #1 on: February 17, 2010, 01:52:34 PM »
Very nice. One question though, are you sure fragmotion works with nags forever. Mine stopped exporting after a while so I paid for the license!
« Reply #2 on: February 17, 2010, 01:55:38 PM »
Not entirely sure, I used mine for 2-3 months then I got tired from nags and paid.

winrad

« Reply #3 on: February 17, 2010, 06:13:50 PM »
@Shadmar
I'm a complete beginner to 3DRad and have been working my socks off to get my head around things (with rewarding results - for me at least) Tutorials like this one are clear, stimulating and really give a "new user" a sense of wanting to go to the next level. Well done  ;) You appear to be hero here from what I can read - and if this is the case the accolade is totally justified!

Perhaps somebody could do a similar walk through on how to get animated characters onto the stage? I've been Googling everything I can from Anipeeple to Mixamo-something-or-another but am still struggling even with the playable difference between bone animated characters and frame by frame ones (?). A leg up on this subject (and the difference between all the formats) would be great help one day.

Many thanks again for sharing your knowledge.
« Reply #4 on: February 18, 2010, 06:29:34 AM »
@ winrad

Anipeeple works, unfortunatly the tutorial for it is long gone (the memeber who did it jumped ship and took everything down) I never got my head round it and would also love a Anipeeple tutorial

winrad

« Reply #5 on: February 18, 2010, 09:35:00 AM »
@bootnut

That's a shame. Why would anybody take down his/her postings knowing that a whole community relies on such help. It must have been very bad. Any blood stains still visible on the walls  :D  ???

It's true that 3DRad does get you up and running without a line of script - just as it is says on the tin, but there can only be a certain amount of satisfaction gained from riding around in driverless cars or tanks or whatever ? Seems to me that getting some people or beasts on the stage, whatever they are doing, is a necessary step to retaining interest - mine at least (unless of course you just prefer wheels to things that breath).

Coming away from FPSC and DarkBasic I have obviously looked at other "free" engines out there and it seems to me that documentation, something like this Shiva overview, may well help newcomers to get up and running without the need to keep going back to those high contrast tutorials on the Home page (that give me a headache) http://developer.stonetrip.com/Users-tutorials/shiva-book-by-the-harwoods.phpl 

The tutorial Shamar did above is similar to this, and perhaps there is sufficient similar material hidden away in the dark corners of this forum that could be used for such a publication?

Anyway - I do hope we can find a way to get something walking on the terrain Shadmar has delivered, rather than just driving over it.
« Reply #6 on: February 18, 2010, 12:07:50 PM »
Anyway - I do hope we can find a way to get something walking on the terrain Shadmar has delivered, rather than just driving over it.

What do you mean by this? Just follow his instructions on the editor's page for getting the terrain into your project then add a skybox, gravity, andro with rigidbody. OR if that sounds tricky, open one of the demos with the andro character already working and import the terrain!
« Reply #7 on: February 18, 2010, 01:20:37 PM »
I've just tested Animeeple a couple of times with one of the default models.
It's just a nice way to apply bvh (motion capture animations) to a rigged (bonebased model).
I haven't tested but, evolver.com seems to support Animeeple directly. This means sculpt your char in evolver (..and buy it) and animate in Animeeple (they got a huge repository of captures to use for animations).
Doing this from scratch (rigging) is hard work (atleast in my own experience).

So from what I know, Evolver+Animeeple would be my choice.
Animeeple can export collada (.dae) so you would also need a collada => .x converter (like Ultimate Unwrap 3d)
« Reply #8 on: February 18, 2010, 02:25:03 PM »
L3DT is more powerful then I thought, and not such complicated that it looks first.
 
For information only:
You can also draw a stitched middleline on the road in Paint.NET.
Just select the right style. (see pic)
 
new forum search:
http://www.google.com/ site:www.3drad.com searchword  ( <-- copy )
3DRad is now in the same Brain-Area like my old C64 and Amiga Memories!

winrad

« Reply #9 on: February 18, 2010, 05:42:31 PM »
@Chebob.

Think you may have misread my posting. I have of course loosely mastered the art of all that you mention (plus scripting) and have got to grips with Shadmar's fantastic utilities.

My point was that there is a lack of animated characters available in 3Drad - or even postings (that I can find) suggesting ways of getting them in. Andro is nice, but clearly does have limitations (unless you are making a games where the bad guys will be frightened away by the sight of a unigender humanoid dressed in cycling gear waving its arms at you). This seems to be weak point in the game dev chain (from my perspective at least).

Thanks for the pointers Shadmar. I have no problem investing in a good app to get what I need. I'll try to get to grips with this and see where it leads.

 
« Reply #10 on: February 18, 2010, 07:13:30 PM »
@Chebob.

Think you may have misread my posting. I have of course loosely mastered the art of all that you mention (plus scripting) and have got to grips with Shadmar's fantastic utilities.

My point was that there is a lack of animated characters available in 3Drad - or even postings (that I can find) suggesting ways of getting them in. Andro is nice, but clearly does have limitations (unless you are making a games where the bad guys will be frightened away by the sight of a unigender humanoid dressed in cycling gear waving its arms at you). This seems to be weak point in the game dev chain (from my perspective at least).
 

My mistake. Yeah the default models with rad don't really allow a 3rd person game to be made! I'm actually gonna be releasing a high-poly (15,000-20,000) photo-realistic character in the next month at some point for 3drad which will work nicely with my advanced character movement script. I definitely want to see more adventure/rpgs made.

winrad

« Reply #11 on: February 18, 2010, 07:15:32 PM »
@Shadmar

I have looked into the recommendations you made above. Once the licence for Ultimate Unwrap is paid for ($59 which would be written off over time with each model converted), the price seems to be about $40 per character via Evolver and Animeeple. You can even put your own face on the avatar, or the face of a person you hate it seems - which opens up a whole host of possibilities that are probably very bad for the karma but beats the hell out of sticking pins in voodoo dolls  8)

It may well be possible to do the same by making the character in DAZ (free) and just purchasing the animation set from Animeeple. This would (I think) reduce the cost to about $10 (to be confirmed). There are also thousands of pre-made models available for DAZ from free to just a few $ if making the character yourself doesn't float your boat.

Judging from those models in DAZ (some of which are very explicit) I see good potential for anybody so inclined to get a 3D porn game on the table before a racing game !

It doesn't look too complicated to get to a .X format via Ultimate Unwrap  - although I have no idea at present how to get it into 3Drad once the conversion had been done  ??? I will have to trawl through the tutorials no doubt for that one.

Thanks for all your help to date.

« Reply #12 on: February 19, 2010, 02:36:37 AM »
It doesn't look too complicated to get to a .X format via Ultimate Unwrap  - although I have no idea at present how to get it into 3Drad once the conversion had been done  ??? I will have to trawl through the tutorials no doubt for that one.
Thanks for all your help to date.

I own Ultimate Unwrap and it can convert almost every format its brilliant, I also use it to .. unwrap :)
The .dae from Animeeple to .x works perfectly with all animations intact.

From .X to rad, just use radImp, a simple two click operation (see my footer)
« Reply #13 on: February 19, 2010, 11:23:24 AM »
I just followed this tutorial, and it works great :) The only thing was that the terrain and the road were flipped on the x and z axes, but that is an easy fix. Not sure if I missed a step or not. I will be taking a better look at this later. Dont have time right now.

Thanks Shadmar, this is a VERY VALUABLE tutorial for the community. And AWESOME tool.
« Reply #14 on: February 19, 2010, 12:33:59 PM »
Thanks alot Sharp, and you're right, they are flipped as you say.
Added a flip vertical to the tutorial :)
« Last Edit: February 19, 2010, 12:52:08 PM by shadmar »
Pages: [1] 2