Page 49 of 50

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 26 Oct 2014, 06:23
by Galactic Boy
How did you do this? It's very good. :)

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 26 Oct 2014, 07:03
by Serial Killer
Galactic, i have to admit, you're a writing machine.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 26 Oct 2014, 08:57
by T.M.
Cuban-Pete wrote:Still a nice program, I made some art with it (and Blender), I call it Industrial Sunset:
Cool! I will add it as screenshot since i lost almost every screenie.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 26 Oct 2014, 11:51
by Cuban-Pete
Do you think it is also possible to export the lamps (with light color) into the .dae file? This way I can try a night render in Blender. :)
Galactic Boy wrote:How did you do this? It's very good. :)
Export to .dae file, import in Blender and play with camera angle, light settings and render settings (like indirect light).

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 28 Oct 2014, 13:54
by T.M.
Cuban-Pete wrote:Do you think it is also possible to export the lamps (with light color) into the .dae file? This way I can try a night render in Blender. :)
Galactic Boy wrote:How did you do this? It's very good. :)
Export to .dae file, import in Blender and play with camera angle, light settings and render settings (like indirect light).
Doesnt it already export lights? I think it does. There must be a setting for it somewhere.

I remember the problem was that i didnt know how to convert GTA2 lights into "real" lights, so they might be too dim or too bright when you enable them.

Just open a map and enable night mode, then export it, all lights should come with it.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 28 Oct 2014, 23:25
by Cuban-Pete
Ah yes, it does export the lights. Nice! :) I'm having however a lot of trouble making it render properly. I switched to Cycles rendering in Blender, but it still goes crap. Is it possible that the lamps don't get exported as lamps, but as planes (perhaps in front of or above the blocks with correct colour)? Point lamps work bad in Cycles, planes should be better (in theory). Here is an example of using planes as light sources (placed by hand):
residential_planes.png

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 02 Nov 2014, 18:01
by T.M.
Cuban-Pete wrote:Ah yes, it does export the lights. Nice! :) I'm having however a lot of trouble making it render properly. I switched to Cycles rendering in Blender, but it still goes crap. Is it possible that the lamps don't get exported as lamps, but as planes (perhaps in front of or above the blocks with correct colour)? Point lamps work bad in Cycles, planes should be better (in theory). Here is an example of using planes as light sources (placed by hand):
residential_planes.png
The editor exports them the same way as they work in GTA2; point lights.

What is "Cycles" ?

What is "planes" in means of lighting?

I would need to know what to do before i do it.

However, if you are experienced in 3d modeling and rendering, you could simply replace the exported file <light> tags with something else. (or what ever tag name it uses in the XML file).

Code: Select all

		<light id="PL0-L" name="PL0">
			<technique_common>
				<point>
					<color sid="color">1 1 0</color>
					<constant_attenuation>0</constant_attenuation>
					<linear_attenuation>1</linear_attenuation>
					<quadratic_attenuation>0</quadratic_attenuation>
				</point>
			</technique_common>
			<extra>
				<technique profile="blender">
					<dist sid="blender_dist">2</dist>
					<att1>1</att1>
					<att2>0</att2>
					<falloff_type>4</falloff_type>
				</technique>
			</extra>
		</light>
Something like that. Possibly replace <point> with <plane> (still dont really know what the heck is plane light)

If you can, you could make your own profile like "blender" has there, and i can add it in the editor.

By the way, how do you make textures work on blender? I cant get it load the exported maps properly anymore (shows no textures). worked with older versions.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 03 Nov 2014, 18:54
by Cuban-Pete
Cycles is a render engine build into the latest Blender. Works with photon path or sumthing like that, more realistic and for this it needs a plane that gives light. Point lights are not that realistic I guess.

I didn't know I could edit the tags of the .dae file, thanks for telling. I'm experimenting (now) with Python and xml editing.

There is also a small problem with your export. You might want to add the <blue>, <red> and <green> tag under the <technique profile="blender"> tag, because the <color> is not read (in latest Blender 2.72b).

I make the texture work by selecting the object, adding a material, adding a texture and select as type the image. As mapping I use UV and for alpha enable it on texture tab and go under material and set transparency on and alpha to 0.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 04 Nov 2014, 22:28
by T.M.
Cuban-Pete wrote:Cycles is a render engine build into the latest Blender. Works with photon path or sumthing like that, more realistic and for this it needs a plane that gives light. Point lights are not that realistic I guess.
How can you create a point light with planes? Sounds quite odd to my ears.
Cuban-Pete wrote:There is also a small problem with your export. You might want to add the <blue>, <red> and <green> tag under the <technique profile="blender"> tag, because the <color> is not read (in latest Blender 2.72b).
Are you sure about that? Damn, i think i had those tags before but removed them because i realised i dont need them.
Cuban-Pete wrote:I make the texture work by selecting the object, adding a material, adding a texture and select as type the image. As mapping I use UV and for alpha enable it on texture tab and go under material and set transparency on and alpha to 0.
It was supposed to work automatically without any clicks in blender, at least it worked before... Do you have any idea how to fix it in the XML?

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 05 Nov 2014, 14:29
by Cuban-Pete
Well, with a plane as a light source, it's not really a point light any more... I'm not sure if I will use planes eventually, I'm just experimenting. You can keep the export to point lights.

When I open 'Epic dae' files I get all white lights, when I save a coloured light in Blender as .dae and re-open it, I do get the coloured light and the difference in the xml is the red,green,blue tag.

I don't know how to fix the XML to get alpha working. I tried an export with Blender to .dae with correct settings, but I could not find a difference with the epic dae.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 06 Nov 2014, 20:15
by T.M.
Cuban-Pete wrote:When I open 'Epic dae' files I get all white lights, when I save a coloured light in Blender as .dae and re-open it, I do get the coloured light and the difference in the xml is the red,green,blue tag.
Oh, i will add those then, some time.
Cuban-Pete wrote:I don't know how to fix the XML to get alpha working. I tried an export with Blender to .dae with correct settings, but I could not find a difference with the epic dae.
So after you opened that re-saved dae, it didnt display texture automatically?

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 06 Nov 2014, 21:44
by Cuban-Pete
Wait. The epic .dae does show the texture, that part works. However the alpha settings are not correct. I tried to recreate an .dae (with correct alpha), but it fails. Just ignore this texture-complain from me, if you can update the lights to have correct colour I'm already happy.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 07 Nov 2014, 10:40
by T.M.
Can you show me the correct .dae tags/specification for the colors, basically just paste the whole <light> tag, so i can add it in the editor as it is in there made by blender.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 07 Nov 2014, 15:29
by Cuban-Pete

Code: Select all

<light id="..." name="...">
	...
	<technique profile="blender">
		...
		<red> x </red>
		<green> y </green>
		<blue> z </blue>
		...
	</technique>
<light>
With x,y,z a value between 0 and 1.

I manipulated the dae with python and got the lights working. Here is a render, I also made a different one:
night.jpg
the_old_factory.jpg

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 08 Nov 2014, 20:14
by T.M.
Wow nice, love the second one! Adding it to first post.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 12 Nov 2014, 05:53
by Pyro
That second screen reminds me of Sim City in a way, i like it!

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 19 Nov 2014, 17:47
by Nightstalker
Image
What is this?

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 19 Nov 2014, 19:35
by T.M.
According to the retval 2, the file could not be opened for writing. Check if your folder has write permissions for new files from your user account. And also check that the filename was valid filename for your platform (Windows 8?).

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 11 Jan 2016, 12:21
by Sektor
I hijacked the Epic GTA2 Map Editor 3D camera and took it for a ride with the GTA2 engine [remote] :)



That map seems more dangerous in 3D.

Here's the small program I wrote to read the player xyza from GTA2 and write it to your editor. It's only compatible with 0.6.6602.
gta2xyz.7z
(155.79 KiB) Downloaded 1788 times
My horrible C++ source code included. Start the map editor first, open a map, change camera to a similar view to the video or load my camera.dat file, open GTA2 on the same map and then run gta2xyz.exe. It needs to be run as admin but this might change in the future if it's turned into a DLL.

Is it possible to start Epic GTA2 Map Editor with most of the windows turned off and camera set to a specific view? If there's no setting for it then it would be great if you could add it. I don't know if I've said it before but your editor is amazing, so many features, so much work and it runs really fast.

We'll have to talk about the best way our apps can communicate or how I should fix my code so you can actually use it.

Re: Epic GTA2 Map Editor (0.6.6602) Beta

Posted: 14 Jan 2016, 15:42
by Sektor
I recorded the video again with better coordinates and infinite water.