Search found 13 matches

by jimburnettva
Fri Sep 10, 2010 1:26 pm
Forum: Beginners Help
Topic: Which network library do you recommend? (Windows)
Replies: 11
Views: 1222

Yeah I just made my own C++ wrappers around Winsock2 and then when I compile on Linux is super easy to re-compile.

Thanks for the replys!

(p.s. I don't get email notifications from this site, something messed up?)



RakNet ?

Oh and btw: Winsock is almost POSIX compatible. IIrc you have one or ...
by jimburnettva
Tue Sep 07, 2010 11:52 pm
Forum: Beginners Help
Topic: [Solved] Help getting getText() into System::String^
Replies: 4
Views: 1143

FIX

Figured it out.


std::string a = core::stringc( txtID->getText() ).c_str();
String^ s = gcnew String(a.c_str());


Works like a charm!
by jimburnettva
Tue Sep 07, 2010 10:58 pm
Forum: Beginners Help
Topic: [Solved] Help getting getText() into System::String^
Replies: 4
Views: 1143

i'm trying to convert getText to type "T"

Such as this (but this doesn't worky)


template <class T>
T getName (std::stringstream ss)
{
T result;
result = ss.string();
return (result);
}
by jimburnettva
Tue Sep 07, 2010 10:49 pm
Forum: Beginners Help
Topic: [Solved] Help getting getText() into System::String^
Replies: 4
Views: 1143

I still get the same errors with:


std::string a = core::stringc( txtID->getText() ).c_str();
std::stringstream ss;
ss << a.c_str() << std::endl;
cli::array<Byte>^sendBytes = Encoding::ASCII->GetBytes( ss.str() + "," + ship->getPosition().X + "," + ship->getPosition().Y + "," + ship->getPosition ...
by jimburnettva
Tue Sep 07, 2010 8:40 pm
Forum: Off-topic
Topic: My first Irrlicht app,.
Replies: 3
Views: 925

My first Irrlicht app,.

I'm a noob I know but it's still kinda cool. (thanks NASA for the SS model)

http://www.youtube.com/watch?v=aM39IQP2Rj8


I'm still working on controls at the moments. I'm trying to build a nice 3Rd person chase camera with smooth transitions.

I felt like showing off my noobness in the 3D world. LOL
by jimburnettva
Tue Sep 07, 2010 8:12 pm
Forum: Beginners Help
Topic: Which network library do you recommend? (Windows)
Replies: 11
Views: 1222

Slave,
Winsock2 looks interesting. Is ws2_32.lib still used for linking?



Bate,
Does the IrrNL let you have access to the lower level methods? Currently I have 3D model information stored in a database and I populate my Scene with the information coming from that database.

I guess what I'm asking ...
by jimburnettva
Tue Sep 07, 2010 8:03 pm
Forum: Beginners Help
Topic: [Solved] Help getting getText() into System::String^
Replies: 4
Views: 1143

[Solved] Help getting getText() into System::String^

I'm tired and maybe someone else can see something I'm missing.



/* This doesnt work. */
core::stringw pname =txtID->getText();
std::stringstream ss;
ss << pname.c_str() << endl;



/*
Docs for GetBytes()
http://msdn.microsoft.com/en-us/library/system.text.asciiencoding.getbytes(v=VS.71).aspx ...
by jimburnettva
Tue Sep 07, 2010 7:55 pm
Forum: Beginners Help
Topic: Which network library do you recommend? (Windows)
Replies: 11
Views: 1222

Which network library do you recommend? (Windows)

I searched for "networking" and "network libraries" and came up empty.

Linux is a no-brainer as I would just use UNIX sockets and be done with it. Not to mention all the native libraries out there.

For windows, I've been looking into few various methods.

I got namespace System::Net::Sockets ...
by jimburnettva
Mon Sep 06, 2010 3:01 pm
Forum: Beginners Help
Topic: Converting a smooth ChaseCamera class from XNA to Irrlicht.
Replies: 1
Views: 897

Converting a smooth ChaseCamera class from XNA to Irrlicht.

I'm like 95% there....

I'm not sure if I am posting this in the right section or not but I figured sense I'm a total noob I'd start here.

A few months ago I tested a ChaseCamera class for the XNA framework, and it compiled and worked well out of the box. It had some nice dampening effects as well ...
by jimburnettva
Sat Sep 04, 2010 9:54 pm
Forum: Beginners Help
Topic: Default node positions.
Replies: 5
Views: 763

Not worried about booe. I'm used to idiots on the net. Anyway, I'm new to both C++ and 3D stuf and just wanted to make sure I understood the API.

On that note. I built a small class (using the Cockput code) based on code I found around here. I also added some logic to determine which direction you ...
by jimburnettva
Thu Sep 02, 2010 2:37 pm
Forum: Beginners Help
Topic: Default node positions.
Replies: 5
Views: 763

Default node positions.

Hello all!

I've been doing a lot of reading on the API. I'm picking things up well but I wanted to make sure I understood some default settings when adding nodes.

Am I correct when I say that addAnimatedMeshSceneNode( mesh ) creates a node, unless specified, at a default position of vector3d(0,0,0 ...
by jimburnettva
Fri Feb 19, 2010 6:06 pm
Forum: Code Snippets
Topic: 3rd person camera #3,267 (C&C needed for newbie)
Replies: 26
Views: 19413

Good stuff.

Rei, I got your latest code to compile just fine under Linux and using the latest Irr libs.

One change...
I had to change

sprintf_s(temp,"%d",intToConvert);

to

sprintf(temp,"%d",intToConvert);

Apparently sprintf_s is a mickeysoft thing? Hmmm not sure.

Anyways, works like a ...
by jimburnettva
Fri Feb 19, 2010 5:09 pm
Forum: Beginners Help
Topic: Camera Help
Replies: 5
Views: 557

I wondered the same thing. KDevelop has code completion and so does Visual C++ express 2005/2008.

Second Vector3df is where the camera is pointing....I think... :-)