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: Shaders - miscellaneous - (Wireframe & Point)  (Read 4709 times)

« Reply #15 on: July 28, 2011, 03:58:04 PM »
Hi TinSoldier, wireframe just renders the triangles of a mesh so there is no way to make them thicker other than rendering the mesh multiple time(or use imposters) slightly offset from the master or do this in your modeller if only rendering the wirframe and the visual is not important. havn't tried to do that but it may be the only way that i can see.
using 3Drad 7.22

system specs:
Windows 7 Home Premium 64-bit
Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (4 CPUs), ~3.2Ghz
8 gig ram
Geforce GTX 650 1024 MB GDDR5
DirectX 11
« Reply #16 on: July 28, 2011, 07:25:27 PM »
Thanks for the speedy reply .

Another question..

Can the shader render quads only ?

The look im going for is the old look of BattleZone tank warfare where the models are only simple wireframe...

Im open for any ideas on how to get that look..
« Last Edit: July 28, 2011, 07:29:15 PM by TinSoldier »
« Reply #17 on: July 29, 2011, 12:33:16 AM »
no prob, the shader will only draw the lines for triangles in the mesh unfortunaley.

there are a few ways you can get that quad look though.

1. the most obvious is build the mesh to look that way i.e. model the outlines by hand or available tools in your modeler, takes abit of modelling skill though.

or

2. build your model as quads, create uv's for it and do a screen capture of the uv layout before you triangulate the mesh. then make a texture out of the screen capture. and use that as the texture for your mesh.

that all I can think of. I used method 1 for certain debug visual in my engine where triangles just looked too messy, but they where simple  models and wouldn't be as easy ans option 2 on a complex model.

hope it helps some. :)
using 3Drad 7.22

system specs:
Windows 7 Home Premium 64-bit
Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (4 CPUs), ~3.2Ghz
8 gig ram
Geforce GTX 650 1024 MB GDDR5
DirectX 11
« Reply #18 on: July 29, 2011, 04:46:18 PM »
I played around.. i think a texture applied with some transparency seems to be the best way to get the end results ..
« Reply #19 on: July 29, 2011, 06:08:47 PM »
looks good Tin, also if you are useing custom shaders you can make double sided with cullmode=none; in the technique like
Code: [Select]
technique Skinning
{
   pass p0
   {
      VertexShader = (vsArray[boneCount]);
      PixelShader = compile ps_1_1 PixScene();
      FillMode = wireframe;
      cullmode = none;
   }
}

using 3Drad 7.22

system specs:
Windows 7 Home Premium 64-bit
Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz (4 CPUs), ~3.2Ghz
8 gig ram
Geforce GTX 650 1024 MB GDDR5
DirectX 11
« Reply #20 on: July 29, 2011, 09:28:15 PM »
cool thankyou..

another option :)
Pages: 1 [2]