Post new topic Reply to topic

Page 1 of 1

Topic

Zrax

Joined: 09 May 2006

Posts: 24

Reply with quote

Post Posted: Sun Aug 19, 2007 5:48 am — Post subject: OpenGL Jalak Editor

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 Smile

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

jeremyjustice

Joined: 27 Sep 2006

Posts: 9

Location: D'Ni...

Reply with quote

Post Posted: Sun Aug 19, 2007 1:48 pm — Post subject:

wooooot

Tiran

Joined: 09 May 2006

Posts: 3120

Location: Aachen, Germany

Reply with quote

Post Posted: Sun Aug 19, 2007 2:28 pm — Post subject:

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 ")


_________________

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

Gadren

Joined: 09 May 2006

Posts: 747

Reply with quote

Post Posted: Sun Aug 19, 2007 4:37 pm — Post subject:

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! ^_^

Zrax

Joined: 09 May 2006

Posts: 24

Reply with quote

Post Posted: Sun Aug 19, 2007 5:57 pm — Post subject:

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!

Christian Walther

Joined: 15 May 2006

Posts: 668

Location: Switzerland

Reply with quote

Post Posted: Mon Aug 20, 2007 5:38 pm — Post subject:

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):

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

HCIdivision17

Joined: 15 May 2006

Posts: 279

Location: The Styx

Reply with quote

Post Posted: Mon Aug 20, 2007 5:50 pm — Post subject:

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

Zrax

Joined: 09 May 2006

Posts: 24

Reply with quote

Post Posted: Mon Aug 20, 2007 11:31 pm — Post subject:

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.

All times are GMT

Jump to:

Post new topic Reply to topic

Page 1 of 1

You can…

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
You cannot vote in polls in this forum