Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Plugin creates terrain

pmax
Registered User
Quote
2014-07-26 16:03:23

I modified an old plugin that I had made some time ago.
Once you've found an image format that can be loaded by javascript (PGM) I modified the old plugin to read it.

There are two ways to create a pgm file compatible with the plugin.
1) the program GIMP. (creates the image).
2) the program IrfanView. (converts the image).

First method.
Open GIMP, create a new project by giving the X, Y (101.101 *).
rempiamo the image of black (which equivalent the minimum value 0), then we use shades of gray to white (which equivalent the maximum value 255) to create the mountains.
save the image in PGM format in ASCII version.

Second method.
We open the image with IrfanView convert in Grayscale, resize the X, Y (101.101 *).
Save the image in PGM format ASCII version.

Let us now CopperCube create a plane with Tile Count (10000 *), Width (3000), Length (3000), Repeat texture (100).

* value required to run the plugin.

We position the plane in the X, Y, Z (0,0,0).
Select the plane to go to the plugins menu and launch LoadfilePGM load the image you created earlier and have fun.

Download the file:https://www.dropbox.com/s/fp3i4z...
Video Tutorial: http://youtu.be/I0VHDmN_nAs

PS: Translation by Google.


niko
Moderator
Quote
2014-07-27 06:46:56

Nice idea, useful. Thanks for posting!


pmax
Registered User
Quote
2014-07-27 10:15:12

@ Niko Thank you.

I found a programming error does not cause problems to that object, it is just annoying.
Open the plugin with a text program to go in row:
if (pgmgimp <0 | | pgmirf <0) alert ('The format is not compatible with the plugin');


Replace with:
if (pgmgimp <0 && pgmirf <0) alert ('The format is not compatible with the plugin');



Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Intern?tional" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact