[Map] Map Viewer by Vel

This is a sub forum dedicated to an open source map editor.
Don't post in it about another subject

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Forum rules
This is a sub forum dedicated to an open source map editor.
Don't post in it about another subject

How could you rate this program?

Very Good
5
50%
Good
2
20%
Buggy
2
20%
Impossible to use
1
10%
 
Total votes : 10

[Map] Map Viewer by Vel

Postby lmame on Wed Mar 18, 2009 12:21 am

Vel finaly released the source code for his map viewer, the thread is here.
There are also in this thread a lot of informations on how to load what is necessary.

Software:
This is the source code of the map viewer Vel has done with the help of many people on this forum.
Vel wrote:How to use:
- Compile,
- Copy "Rose Editor.exe" where you extracted ROSE data,
- Copy shaders from my project in the same folder,
- run,
mouse+right button - camera move;
shift+mouse - up, down;


Requirements:
It has been build with Visual Studio 2003. If you use Visual Studio 2008 you'll have quite some warnings.
You should need to copy the file "glaux.lib" in the "/lib" folder of your Visual Studio if needed.
Copy the files from gl_glsl too if they are needed (in the program source code).

Here are some informations on how to build in Visual Studio 2008, things can be different with this new source:
lmame wrote:-> copy the file "glaux.lib" in the "/lib" folder of your Visual Studio if needed,
--> add into (to avoid problems):
--> project->rose... properties
--> Configuration properties->Linker->Command line
----> /NODEFAULTLIB:libc.lib

Perhaps you'll have a lot of errors "int" assumed or something like that, so just declare the variables that are in errors.



Files:
GlAux.rar
GlAux.rar
(91.53 KiB) Downloaded 1463 times

GL_GLSL.rar
Gl, GSL
(82.93 KiB) Downloaded 1409 times

Rose Editor (for osRose).rar
Source.
(2.45 MiB) Downloaded 1439 times



Edit 2008/03/20:
-> Project for Visual Studio 2008 added,


Visual Studio 2008 Project:
Files for Visual Studio 2008:
For osROSE_2008.rar
(1.4 MiB) Downloaded 1494 times


Notes:
vel wrote:Build in "Debug" mode. Than copy exe file, sky1.bmp, sky2.bmp and "Shaders" folder to root of extracted Rose data and run.
In t1.fsh you can switch from no normals on terrain:
  1.  
  2. gl_FragColor = 1.5*(mix(a, b, b.a) *shadow);


or with normals

  1. gl_FragColor = (dot ( n2, l2 ) *2.0 )* mix(a, b, b.a) *shadow;


Comment the line (shouldn't be needed):
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Map] Map Viewer by Vel

Postby Vel on Wed Mar 18, 2009 4:09 pm

I want to see comments please :)
Sorry for terrible english. My native language is C++
User avatar
Vel
Pomic
Pomic
 
Posts: 120
Joined: Mon Nov 03, 2008 9:13 am
Location: Ukraine, Kharkov.

Re: [Map] Map Viewer by Vel

Postby DragonXX on Wed Mar 18, 2009 5:09 pm

I cant compile with VS 2008

Many

Error 2 fatal error C1083: Cannot open include file: 'gl/glaux.h': No such file or directory c:\temp\mapviewer\simpleso.h 18 Rose Editor

Error 8 fatal error C1083: Cannot open include file: 'gl/glaux.h': No such file or directory c:\temp\mapviewer\simpleso.h 18 Rose Editor


some idea?
DragonXX
Rackie
Rackie
 
Posts: 155
Joined: Tue Aug 07, 2007 11:10 pm

Re: [Map] Map Viewer by Vel

Postby Vel on Wed Mar 18, 2009 7:08 pm

I know this problem, use this sources
GL_GLSL.rar
(82.93 KiB) Downloaded 1259 times
Sorry for terrible english. My native language is C++
User avatar
Vel
Pomic
Pomic
 
Posts: 120
Joined: Mon Nov 03, 2008 9:13 am
Location: Ukraine, Kharkov.

Re: [Map] Map Viewer by Vel

Postby Cellcote on Wed Mar 18, 2009 9:13 pm

I'm getting 123 errors of these: error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\documents and settings\rik\desktop\rose editor\simpleso.h

VS2008
Image
Cellcote
Rackie
Rackie
 
Posts: 188
Joined: Thu Aug 09, 2007 11:07 am

Re: [Map] Map Viewer by Vel

Postby DragonXX on Wed Mar 18, 2009 9:28 pm

Me too... after add GL-GLSL in source, 123 errors :(
DragonXX
Rackie
Rackie
 
Posts: 155
Joined: Tue Aug 07, 2007 11:10 pm

Re: [Map] Map Viewer by Vel

Postby DoubleEagles on Wed Mar 18, 2009 9:44 pm

are u guys using VS 2003? or 2008?
DoubleEagles
Rackie
Rackie
 
Posts: 225
Joined: Sat Dec 13, 2008 9:00 am

Re: [Map] Map Viewer by Vel

Postby Vel on Wed Mar 18, 2009 10:00 pm

Dont know about 2008 but in 2003 all is ok
Sorry for terrible english. My native language is C++
User avatar
Vel
Pomic
Pomic
 
Posts: 120
Joined: Mon Nov 03, 2008 9:13 am
Location: Ukraine, Kharkov.

Re: [Map] Map Viewer by Vel

Postby lmame on Wed Mar 18, 2009 11:00 pm

Cellcote wrote:I'm getting 123 errors of these: error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\documents and settings\rik\desktop\rose editor\simpleso.h

VS2008


Then add the "int" :roll:.
The world is full of love and peace ^_^
Image
User avatar
lmame
Admin
Admin
 
Posts: 8997
Joined: Mon Aug 06, 2007 4:42 pm
Location: July City

Re: [Map] Map Viewer by Vel

Postby Vel on Thu Mar 19, 2009 1:05 pm

and change in main.cpp
  1. TERRAIN->Load("../rose data/3DDATA/MAPS/JUNON/JG02/JG02.ZON", 3, 3, 4);

on
  1. TERRAIN->Load("3DDATA/MAPS/JUNON/JG02/JG02.ZON", 3, 3, 4);
Sorry for terrible english. My native language is C++
User avatar
Vel
Pomic
Pomic
 
Posts: 120
Joined: Mon Nov 03, 2008 9:13 am
Location: Ukraine, Kharkov.

Next

Return to [Project] Map Editor

Who is online

Users browsing this forum: No registered users and 3 guests