i'm looking for an open source irrlicht scene editor

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
drac_gd
Posts: 132
Joined: Sun Apr 09, 2006 8:43 pm

Post by drac_gd »

dlangdev,
Great work.. It is a great start for some In game editing.
maybe some config file to enable/disable editing mode?
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

bitplane wrote:If you're actually going to make an open source scene editor, I have two suggestions..
1) serialize the node's attributes to an attribute editor element (see the gui editor)
2) forum posts aren't the best place for the code, especially with one post for each revision ;) if it's going to be a simple scene editor as a code snippet, do it as one post in the code snippets forum
started reading ISceneUserDataSerializer code. will get back to coding more sometime during the weekend.
Image
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

drac_gd wrote:dlangdev,
Great work.. It is a great start for some In game editing.
maybe some config file to enable/disable editing mode?
good idea.

i'll definitely take that direction for building gameworlds, interactively adding completed models like brush tools. i've been chatting with little kids about this, though i need more demo programs to prove my ideas are worth their time.

anyway, i'll be easy on this, take it easy and have fun along the way. i already have an audience for my little toys. all i need is buckle down and build the one they like. who knows, it might turn out something big later on, these kids will grow up and probably help the project grow into something bigger.
Image
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

dlangdev wrote:
started reading ISceneUserDataSerializer code. will get back to coding more sometime during the weekend.
i've hit a snag, it looks like adding soap calls isn't going to be as fast as i thought. i won't be able to add ISceneUserDataSerializer on the demo code for at least another week as i'm setting up a demo program demonstrating soap for game synch. this will be used for games that don't need raknet and are usually point-n-click navigation only.
Image
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

finally!

i got the soap client c++ code talking to my test webservice.

this is awesome.

now, i can connect from an irrlicht game client to any soap server out there. for example: google, amazon, ebay, hotels, expedia, etc.

here is the win32 code pasted below.

i'll work on the unix/linux/mac version later.

Code: Select all


#include <stdio.h>

#import "msxml3.dll" 
using namespace MSXML2;

#import "C:\Program Files\Common Files\MSSoap\Binaries\MSSOAP1.dll" \
         exclude("IStream", "ISequentialStream", "_LARGE_INTEGER", \
               "_ULARGE_INTEGER", "tagSTATSTG", "_FILETIME")
using namespace MSSOAPLib;

void CallService()
{

   ISoapSerializerPtr Serializer;
   ISoapReaderPtr Reader;
   ISoapConnectorPtr Connector;

   // Connect to the service
   Connector.CreateInstance(__uuidof(HttpConnector));
   Connector->Property["EndPointURL"] = "http://mygameworld.com/soap/useradmin.asmx?wsdl";
   Connector->Connect();

   // Begin message
   Connector->Property["SoapAction"] = "http://mygameworld.com/soap/getUserInfo";
   Connector->BeginMessage();

   // Create the SoapSerializer
   Serializer.CreateInstance(__uuidof(SoapSerializer));

   // Connect the serializer to the input stream of the connector
   Serializer->Init(_variant_t((IUnknown*)Connector->InputStream));

   // Build the SOAP Message
   Serializer->startEnvelope("","","");
   Serializer->startBody("");
   Serializer->startElement("getUserInfo ","","","");
		Serializer->startElement("userID","","","");
		Serializer->writeString("1016984");
		Serializer->endElement();
   Serializer->endElement();
   Serializer->endBody();
   Serializer->endEnvelope();
   
   // Send the message to the web service
   Connector->EndMessage();      

   // Let us read the response
   Reader.CreateInstance(__uuidof(SoapReader));

   // Connect the reader to the output stream of the connector
   Reader->Load(_variant_t((IUnknown*)Connector->OutputStream), "");
   
   // Display the result
   printf("Webservice Reply ==>  %s\n", (const char *)Reader->RPCResult->xml);

}

void main()
{
   CoInitialize(NULL);
   CallService();
   CoUninitialize();
}
Image
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

this part of the code is flaky, it runs on some setup and then fails on another setup too.

well, what can you expect from several implementations?

Code: Select all

// Build the SOAP Message 
   Serializer->startEnvelope("","",""); 
   Serializer->startBody(""); 
   Serializer->startElement("getUserInfo ","","",""); 
      Serializer->startElement("userID","","",""); 
      Serializer->writeString("1016984"); 
      Serializer->endElement(); 
   Serializer->endElement(); 
   Serializer->endBody(); 
   Serializer->endEnvelope(); 
to fix this flaky code, i had to gut out startElement() and writeString() and use writeXML() to hardwire the elements and values.

Code: Select all

   // Build the SOAP Message
   Serializer->startEnvelope("","","");
   Serializer->startBody("");
   Serializer->writeXML("<getUserInfo xmlns='http://mygameworld.com/etc/etc/etc/>");
   Serializer->writeXML("<useridID>5526</useridID>");
   Serializer->writeXML("</getUserInfo>");
   Serializer->endBody();
   Serializer->endEnvelope();
Image
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

Hi Dlangdev.

I've saw your idea and worked something too. I wanted to check the viewport feature of IRRlicht and this gave me the opportunity to test it.

Look the model viewer that I have now:
Image
The code is posted in the code snippet forum:
Look here:http://irrlicht.sourceforge.net/phpBB2/ ... 115#144115
dlangdev
Posts: 1324
Joined: Tue Aug 07, 2007 7:28 pm
Location: Beaverton OR
Contact:

Post by dlangdev »

that's what i'm talking about!

awesome! ~~~ dude ~~~

u daaaa maaaannnn~~!

now....

the code, please.

http://irrlicht.sourceforge.net/phpBB2/ ... 115#144115

hehe
Image
pera
Posts: 460
Joined: Wed May 14, 2008 1:05 pm
Location: Novi Sad, Serbia
Contact:

Post by pera »

anything happeninng with this idea?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Christian Clavet is still developing his version, it's really quite good so check it out, you can get it from a link in his signature, on the First King website.
Image Image Image
Post Reply