ImgToMap - terrain generator

Post anything to do with editing Nexuiz here. Whether its problems you've had, questions, or if you just want to show off your work.

Moderators: Nexuiz Moderators, Moderators

Postby SavageX » Mon May 19, 2008 12:46 pm

C.Brutail wrote:From those, I already have (and I've had when I've posted the error above):

sun-java6-bin sun-java6-fonts sun-java6-jdk sun-java6-jre sun-java6-plugin

So what am I missing? :(


If you're on Ubuntu or Debian you can configure what JVM is to be used with

update-java-alternatives -l

With

sudo update-java-alternatives -s java-6-sun

You can select Sun's java.
SavageX
Site Admin
 
Posts: 442
Joined: Wed Mar 01, 2006 9:34 am

Postby SavageX » Mon May 19, 2008 12:49 pm

morfar wrote:It's crashing for me when I press "Start conversion!". Using windows xp sp2 with java 6 update 5.


How big was the picture you stuffed into? I should check to make sure nobody feeds in anything bigger than 128x128 or 160x160 - that'd be too many brushes.

(Plus I should perhaps directly stream into the output file and not keep everything in a StringBuffer, which then gets flushed to disk)

edit: No, you don't need to allocate more memory to Java. I should just stop wasting loads of it :)
SavageX
Site Admin
 
Posts: 442
Joined: Wed Mar 01, 2006 9:34 am

Postby morfar » Mon May 19, 2008 1:09 pm

The image is 512x512 :P

edit: rezized it to 128x128 still low on memory.

Here it is:
Image
morfar
Site Admin
 
Posts: 938
Joined: Tue Feb 28, 2006 6:08 pm
Location: The Island

Postby SavageX » Mon May 19, 2008 1:18 pm

morfar wrote:The image is 512x512 :P

edit: rezized it to 128x128 still low on memory.

Here it is:
Image


I'll check this out. Currently I keep the complete map file in memory, then write it to disk, which is pretty stupid.
SavageX
Site Admin
 
Posts: 442
Joined: Wed Mar 01, 2006 9:34 am

Postby SavageX » Mon May 19, 2008 1:29 pm

Okay, fixed the the memory hog in SVN ( http://svn.icculus.org/nexuiz/trunk/too ... 36&r2=3639 ). Once I am home I'll upload a new version. This version can now convert images being *far* too big ;-)
SavageX
Site Admin
 
Posts: 442
Joined: Wed Mar 01, 2006 9:34 am

Postby SavageX » Mon May 19, 2008 5:15 pm

Bump. New version available which should also work on Java 5 platforms and fixes the memory problems.
SavageX
Site Admin
 
Posts: 442
Joined: Wed Mar 01, 2006 9:34 am

Postby SavageX » Wed May 21, 2008 7:28 pm

Bump. New version with the ability to automatically generate visblockers.
SavageX
Site Admin
 
Posts: 442
Joined: Wed Mar 01, 2006 9:34 am

Postby TVR [Public Terminal] » Thu May 22, 2008 3:38 am

Due the usage of alpha channel to determine the existence of a brush at a pixel, it seems as if this plugin was idealized with the creation of Facing Worlds/Broken World-style space floater in mind.

Unfortunately, for it to be viable to do so, a tri-soup thickness option is needed.

torus wrote:Very nice :D I haven't used it, but it looks like it could be useful for making tri-soups where a model isn't practical.


.ASE models should never be used for terrain, reiteration is tiresome.
TVR [Public Terminal]
Member
 
Posts: 27
Joined: Sat Dec 22, 2007 12:48 am

Postby tZork » Thu May 22, 2008 11:32 am

TVR [Public Terminal] wrote:Due the usage of alpha channel to determine the existence of a brush at a pixel, it seems as if this plugin was idealized with the creation of Facing Worlds/Broken World-style space floater in mind.

Unfortunately, for it to be viable to do so, a tri-soup thickness option is needed.

torus wrote:Very nice :D I haven't used it, but it looks like it could be useful for making tri-soups where a model isn't practical.


.ASE models should never be used for terrain, reiteration is tiresome.


Facing maybe, broken no, it has a rather visible underside and afaik this tool will not uvmap so you will most likely have to use projected texturing, witch is nice and easy and totaly sux for steep / caved in surfaces. ase models are the only real option for complicated terrain / terrain elements if you want to have no / few visible seams and compleate the map in less then a decade. its also to same deal as far as the engine is consernd since forcemata models are broken down just the same way detail brushes are. if you dont want to use models, dont. But stop puting unsubstantiated propaganda in ppls head. theres no practical reason not to use em.

SavageX wrote:Bump. New version with the ability to automatically generate visblockers.

Thats like total leetness :D gunna have to try this thing out, good work =)
HOF:
<Diablo> the nex is a "game modification"
<Diablo> quake1 never had a weapon like that.
<Vordreller> there was no need for anything over 4GB untill Vista came along
<Samua>]Idea: Fix it? :D
<Samua>Lies, that only applies to other people.
tZork
tZite Admin
 
Posts: 1337
Joined: Tue Feb 28, 2006 6:16 pm
Location: Halfway to somwhere else

Postby divVerent » Thu May 22, 2008 1:26 pm

I wonder if .ase models can create structural brushes when their shader contains "surfaceparm structural". If that works, that would erase the only problem with embedding .ase models...
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

PreviousNext

Return to Nexuiz - Editing

Who is online

Users browsing this forum: No registered users and 1 guest