How to force q3map2 to keep samplesize at 16 on huge surfs

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
lightmill
Posts: 42
Joined: Sun Nov 27, 2011 11:27 am

How to force q3map2 to keep samplesize at 16 on huge surfs

Post by lightmill »

How to force q3map2 to keep samplesize at 16 on huge planar surfaces?
No, tessellating them wont help, it still bakes all them into one 128x128 lm texture.
Cant make the slices non-planar (think of a city square, it must be flat).
Not using -meta is not an option (or other stuff wont work).
-samplesize 16 doesnt do anything either.

If its possible at all...
[url=http://twitter.com/back2cccp]twit[/url]
[url=http://slapmap.wordpress.com/]blog[/url]
[color=#BFFFBF]¯\_(ツ)_/¯ ----------------------------------------------------------------
[/color]
obsidian
Posts: 10970
Joined: Mon Feb 04, 2002 8:00 am

Re: How to force q3map2 to keep samplesize at 16 on huge surfs

Post by obsidian »

Quake 3 will always render lightmaps to 128x128 lightmap pages, regardless of surface size. Some other games like Wolf:ET will support larger.

You can tessellate, but you'll have to apply a different shader on adjacent quads or offset the texture mapping by a fraction of a unit.

You can use external lightmaps, they can be larger in size, but they also have their own complications, for example here...
viewtopic.php?f=10&t=46294
[size=85][url=http://gtkradiant.com]GtkRadiant[/url] | [url=http://q3map2.robotrenegade.com]Q3Map2[/url] | [url=http://q3map2.robotrenegade.com/docs/shader_manual/]Shader Manual[/url][/size]
Delirium
Posts: 102
Joined: Mon Apr 27, 2009 10:05 am

Re: How to force q3map2 to keep samplesize at 16 on huge surfs

Post by Delirium »

q3map_lightmapSampleSize?
[url=http://gotdelirium.com/][img]http://www.gotdelirium.com/stuff/gdd.png[/img][/url]
lightmill
Posts: 42
Joined: Sun Nov 27, 2011 11:27 am

Re: How to force q3map2 to keep samplesize at 16 on huge surfs

Post by lightmill »

obsidian wrote:You can tessellate, but you'll have to apply a different shader on adjacent quads or offset the texture mapping by a fraction of a unit.
Tried that, doesn't work. (Lightmap coords are not dependant on diffuse texture coords)
q3map_lightmapSampleSize 16 or q3map_nonplanar in shader didnt help either

still getting 'WARNING: surface too large for desired samplesize/lightmapsize/lightmapscale combination, increased samplesize from 16 to 164'
it refuses to pack the ground into several lightmap textures
Is the only solution doing external 1024 lightmaps ?
[url=http://twitter.com/back2cccp]twit[/url]
[url=http://slapmap.wordpress.com/]blog[/url]
[color=#BFFFBF]¯\_(ツ)_/¯ ----------------------------------------------------------------
[/color]
Post Reply