i'm looking for an open source irrlicht scene editor
started reading ISceneUserDataSerializer code. will get back to coding more sometime during the weekend.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
good idea.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?
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.
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.dlangdev wrote:
started reading ISceneUserDataSerializer code. will get back to coding more sometime during the weekend.
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.
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();
}
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?
to fix this flaky code, i had to gut out startElement() and writeString() and use writeXML() to hardwire the elements and values.
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();
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();
-
- Posts: 1638
- Joined: Mon Apr 30, 2007 3:24 am
- Location: Montreal, CANADA
- Contact:
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:
The code is posted in the code snippet forum:
Look here:http://irrlicht.sourceforge.net/phpBB2/ ... 115#144115
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:
The code is posted in the code snippet forum:
Look here:http://irrlicht.sourceforge.net/phpBB2/ ... 115#144115
that's what i'm talking about!
awesome! ~~~ dude ~~~
u daaaa maaaannnn~~!
now....
the code, please.
http://irrlicht.sourceforge.net/phpBB2/ ... 115#144115
hehe
awesome! ~~~ dude ~~~
u daaaa maaaannnn~~!
now....
the code, please.
http://irrlicht.sourceforge.net/phpBB2/ ... 115#144115
hehe