3D Gamestudio Gamedevelopment 3DGS A6 A7 - free engine tutorials models shaders textures codes

Use a second uv-set on your 3DGS models .mdl to make a terrain shadow for example

June 5th, 2007 | Posted in 3DGS, Useful 3DGS Tools | Tags: , , ,

Ventilator has developed a new tool, with its help its now possible to use a second uv set for your 3dgs .mdl models. The background was to use realistic shadows on terrain. Imagine you made a nice level scene in blender and want to calculate the shadow there. Instead of backing it onto the model, wich is hard and ugly work, you just use 2 models now in conjunction with the plugin! One model holds the normal texture data and the other the shadow data.

The plugin combines both and the result could look something like that. Without nasty workarounds of cause:

plugin schatten berechnen

It is really extremely useful, especially for terrain shadows wich were hard to produce in A6 till now…

You will need at least 3D Gamestudio Version 6.6 to run it. A model skin with shadow data could look something like that:

schattenbild

and with the help of a second model and plugin you will get this:

noch ein schattenbild

Here is what Ventilator wrote in his thread:

(the demo has a 777 polygon limitation and displays a demo message at each function call. if you would like to have an unlimited version you can write me a pm or email.)

this plugin makes it possible to use two uv-sets on your models. since the mdl7 format doesn’t support two uv-sets, you will need two versions of your model. one with the first uv-set and one with the second uv-set. with the ent_loadseconduvset() function you can load the uvs of the second model into the second uv-set of the first model.

* the two models must have the same triangle count
* the vertices must be at the same positions
* the triangles must have the same vertex order
(these points usually are the case if you export them from the same application)
* the plugin requires engine version 6.6 or higher
* you can’t use vec_for_mesh/vec_to_mesh anymore with a replaced mesh

I can also recommend his free Blender Tutorial and Exporter for 3DGS.

These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Technorati
  • MisterWong
  • Spurl
  • Furl
  • Reddit

Related Posts:


1 Comment »

  1. i can work with 3dgs

    Comment by masoud.sb May 14, 2008 @ 5:42 pm

Comments RSS | TrackBack URI


Leave a comment