Author Topic: Trying to create LOD models.  (Read 11334 times)

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Trying to create LOD models.
« on: February 21, 2008, 02:28:39 am »
1. I know hardly anything of Blender.
2. I know how to(limitedly) use the Decimate modifier.

Problem: Tremulous does not have LOD models. This causes a significant performance impact, at least on older systems. So, I am trying to create LOD models for the current 1.1.0 models in Tremulous. I have successfully imported md3 models into Blender, and have been able to use Decimate on them, however, I cannot apply the modifier because of "Shape Keys". I don't know what these are(something about animation?), and apparently you can't use Decimate on objects with shape keys. How can I get around this problem?

If anyone ever thought about doing this as well, you can make LOD models for Q3 engine games by exporting the model as the same filename as the main full-poly model, but with a _# at the end of the filename, before the extension. Example: reactor.md3, reactor_1.md3, reactor_2.md3.

X-20

  • Posts: 268
  • Turrets: +62/-33
Re: Trying to create LOD models.
« Reply #1 on: February 21, 2008, 02:43:33 am »
hm.. ive toiled around in blender for awhile.. are you sure your in edit mode?
Quote from: Stannum
I'm busy making muffins right now so I'll have to ban you later. >:|
Quote
<joey`> mcdonalds fired me for trying to install irc on the teleprompter

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Re: Trying to create LOD models.
« Reply #2 on: February 21, 2008, 05:14:56 am »
You can't apply modifiers in edit mode...

X-20

  • Posts: 268
  • Turrets: +62/-33
Re: Trying to create LOD models.
« Reply #3 on: February 21, 2008, 05:31:07 am »
Lies, in my blender you can make/apply them in edit mode just fine at the bottem right of the blender inferface.
Quote from: Stannum
I'm busy making muffins right now so I'll have to ban you later. >:|
Quote
<joey`> mcdonalds fired me for trying to install irc on the teleprompter

Shadowgandor

  • Posts: 826
  • Turrets: +61/-66
Re: Trying to create LOD models.
« Reply #4 on: February 21, 2008, 03:19:13 pm »
My blender can only make fruit juice and the likes :(

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Re: Trying to create LOD models.
« Reply #5 on: February 21, 2008, 05:23:35 pm »
Lies, in my blender you can make/apply them in edit mode just fine at the bottem right of the blender inferface.
Nope, not in mine.

X-20

  • Posts: 268
  • Turrets: +62/-33
Re: Trying to create LOD models.
« Reply #6 on: February 21, 2008, 05:24:51 pm »
Well what version of it do you have >.>  :basilisk:
Quote from: Stannum
I'm busy making muffins right now so I'll have to ban you later. >:|
Quote
<joey`> mcdonalds fired me for trying to install irc on the teleprompter

X-20

  • Posts: 268
  • Turrets: +62/-33
Re: Trying to create LOD models.
« Reply #7 on: February 21, 2008, 05:40:22 pm »

Are you sure it wont work? :S
EDIT: [selfownage] i forgot to put it in edit mode for the pic :o.. still its in the same place in edit mode.[/selfownage]
« Last Edit: February 21, 2008, 07:49:47 pm by X-20 »
Quote from: Stannum
I'm busy making muffins right now so I'll have to ban you later. >:|
Quote
<joey`> mcdonalds fired me for trying to install irc on the teleprompter

tyranis

  • Posts: 44
  • Turrets: +3/-5
Re: Trying to create LOD models.
« Reply #8 on: February 21, 2008, 09:33:34 pm »
Odin you can(in 2.5 atleast). Also, I'm not sure decimate will give you very high quality results for this application.

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Re: Trying to create LOD models.
« Reply #9 on: February 22, 2008, 03:53:34 am »
tyranis: That's what I am trying to achieve. Low-quality models for far level-of-detail. The decimate modifier works in the preview but not if I hit Apply. The results are satisfactory in the preview. I am using Blender 2.45, Ubuntu 7.04.

tyranis

  • Posts: 44
  • Turrets: +3/-5
Re: Trying to create LOD models.
« Reply #10 on: February 24, 2008, 10:17:26 pm »
Odin: Once you apply a modifier it modifies the mesh itself, this is probably messing up the shape keys that are used for animation. In this application, it would be feasible to remove all the shape keys since model animations would be unnecessary at long distance.
« Last Edit: February 24, 2008, 10:22:02 pm by tyranis »

Odin

  • Spam Killer
  • *
  • Posts: 1767
  • Turrets: +113/-204
    • My Website
Re: Trying to create LOD models.
« Reply #11 on: February 25, 2008, 03:50:08 am »
An example of something that does: the Reactor.

Also, when people use lower quality 3D settings in the System menu it will force higher r_lodBias modes. r_lodBias 0 uses all LOD models, starting from the main full-poly model and working up from _1 to however many LOD models there are. r_lodBias 1 forces _1 as the main high-poly model, and so on. So if people are not using the High setting for Geometric Detail(which does nothing since there are no LOD models to use for Geometric Detail anyway), they will lose animations.

Also, hitting "Play Animation" in the View menu plays the animation with the Decimate preview.
« Last Edit: February 25, 2008, 03:52:13 am by Odin »

jal

  • Posts: 249
  • Turrets: +8/-7
Re: Trying to create LOD models.
« Reply #12 on: March 01, 2008, 11:48:23 am »
1. I know hardly anything of Blender.
2. I know how to(limitedly) use the Decimate modifier.

Problem: Tremulous does not have LOD models. This causes a significant performance impact, at least on older systems. So, I am trying to create LOD models for the current 1.1.0 models in Tremulous. I have successfully imported md3 models into Blender, and have been able to use Decimate on them, however, I cannot apply the modifier because of "Shape Keys". I don't know what these are(something about animation?), and apparently you can't use Decimate on objects with shape keys. How can I get around this problem?

If anyone ever thought about doing this as well, you can make LOD models for Q3 engine games by exporting the model as the same filename as the main full-poly model, but with a _# at the end of the filename, before the extension. Example: reactor.md3, reactor_1.md3, reactor_2.md3.
This is the best initiative for Tremulous I've seen since I've first heard of the game. A obscure task which probably won't report you big recognition (the power of LODs is very underrated), but something that will really help everyone. Thnx even if you never get it finished.
I wish I could be of any help, but I know almost nothing about Blender.
« Last Edit: March 01, 2008, 11:54:12 am by jal »

Jimmg

  • Posts: 9
  • Turrets: +3/-0
Re: Trying to create LOD models.
« Reply #13 on: March 05, 2010, 09:58:48 am »
Using the Decimate modifier is a horrible way to make LODS, I suggest against it.