It is currently Wed Oct 18, 2017 12:43 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: OpenGL Jalak Editor
PostPosted: Sun Aug 19, 2007 5:48 am 
Offline
Obduction Backer

Joined: Tue May 09, 2006 8:02 pm
Posts: 24
Ok, so I got bored, found D'Lanor's cool Excel-based Jalak Editor, and decided to write another Jalak Editor using OpenGL (for dynamic viewing) and wxWidgets (so it should be able to run on all major platforms). Granted, I don't have a Mac to compile it on, but if some mac user out there manages to compile it, I'll gladly host it :)

So, here it is:
* Screenshot
* Download (Windows)
* Download (Mac) (Thanks to Christian Walther!)
* Source Code (C++, requires wxWidgets)

Enjoy!

Updated 2007/8/20: Mirrored Christian's Mac build, and included Makefiles/Project files for Linux, OSX, VC6 and VC2005 in the Source zip.


Last edited by Zrax on Mon Aug 20, 2007 11:28 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 19, 2007 1:48 pm 
Offline

Joined: Wed Sep 27, 2006 10:14 pm
Posts: 9
Location: D'Ni...
wooooot


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 19, 2007 2:28 pm 
Offline

Joined: Tue May 09, 2006 4:24 pm
Posts: 3120
Location: Aachen, Germany
Installation and compilation on Ubuntu and Debian Linux:

Code:
$ sudo apt-get install libwxgtk2.8-dev
$ mkdir JalakEdit
$ cd JalakEdit
$ wget http://uru.zrax.net/JalakEdit_Src.zip
$ unzip JalakEdit_Src.zip
$ g++ -O2 `wx-config --libs --cppflags core,base,gl` *.cpp -o JalakEdit
$ ./JalakEdit


(` are back ticks and not ' or ")

_________________
Image
[KI again #01792364]| Uru images | KI guide


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 19, 2007 4:37 pm 
Offline
Obduction Backer

Joined: Tue May 09, 2006 12:35 am
Posts: 747
Tiran wrote:
Installation and compilation on Ubuntu and Debian Linux:

Code:
$ sudo apt-get install libwxgtk2.8-dev
$ mkdir JalakEdit
$ cd JalakEdit
$ wget http://uru.zrax.net/JalakEdit_Src.zip
$ unzip JalakEdit_Src.zip
$ g++ -O2 `wx-config --libs --cppflags core,base,gl` *.cpp -o JalakEdit
$ ./JalakEdit


(` are back ticks and not ' or ")


Thanks! It works perfectly! ^_^


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sun Aug 19, 2007 5:57 pm 
Offline
Obduction Backer

Joined: Tue May 09, 2006 8:02 pm
Posts: 24
You can also use the same instructions for Gentoo, replacing the first with "USE=opengl emerge wxGTK", but it seems that WxWidgets 2.6 has a bug with the OpenGL Z-buffer, producing some odd render effects... This is actually the biggest reason why I didn't include a Linux Makefile, although it's good to know that it only breaks with WxWidgets 2.6, and not all wxGTK builds (all I have right now is Gentoo to test with, which doesn't have 2.8 ). Thanks Tiran!


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Aug 20, 2007 5:38 pm 
Offline
Obduction Backer

Joined: Mon May 15, 2006 2:02 pm
Posts: 807
Location: Switzerland
Good job! Works nicely on Mac OS. The only problem is that you can't navigate into the application bundle in the open and save dialogs, so you have to copy the files in/out manually. As far as I can tell there is no way to fix this with wxFileDialog.

Here's the compiled Mac application for those who don't want to go through the hassle of installing wxWidgets, and here's the makefile that generated it (place it in a subfolder of JalakEdit_Src and adjust the wx-config path):
[spoiler=Click to reveal text file.]
Code:
#WXCONFIG = /usr/local/lib/wxPython-unicode-2.8.3.0/bin/wx-config
WXCONFIG = /Users/cwalther/Desktop/Incoming/wxMac-2.8.4/osx-build/wx-config
CXXFLAGS = $(shell $(WXCONFIG) --cxxflags std,gl)
LDFLAGS = $(shell $(WXCONFIG) --libs std,gl) -framework OpenGL

OBJECTS = Main.o wxJalakFrame.o wxJalakViewer.o


all: JalakEdit.app

JalakEdit.app: JalakEdit
   mkdir -p JalakEdit.app/Contents/MacOS
   cp JalakEdit JalakEdit.app/Contents/MacOS/
   strip JalakEdit.app/Contents/MacOS/JalakEdit

JalakEdit: $(OBJECTS)
   g++ -o JalakEdit $(OBJECTS) $(LDFLAGS)

%.o: ../%.cpp
   g++ -arch ppc -arch i386 $(CXXFLAGS) -c -o $*.o ../$*.cpp

clean:
   rm -fv *.o JalakEdit
   rm -frv JalakEdit.app
[/spoiler]


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Aug 20, 2007 5:50 pm 
Offline
Obduction Backer

Joined: Mon May 15, 2006 1:17 am
Posts: 279
Location: The Styx
Well done! D'Lanor's editor really helped me think about the game I wanted to design, but shifting the hight map slowed me down a bit. Too hard to keep the map in mind long enough to edit the field.

Thanks! I'll try to get to the shifting landscape puzzle soon. Mmm, 3D rule-based strategic/tactical board game goodness!

_________________
Hover Conversion Industries - Division 17
Relavahn --- KI:06877562


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Aug 20, 2007 11:31 pm 
Offline
Obduction Backer

Joined: Tue May 09, 2006 8:02 pm
Posts: 24
Thanks Christian! I've mirrored your Mac build, and included the makefile (as well as the Makefiles/Project files that I already had) into the source zip.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: