Google SketchUp 7

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Google SketchUp 7

Post by Malgodur »

Is there any converter Google SketchUp 7 to ms3d, or any irlicht Google SketchUp 7 loader?
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

You can load the Collada export from SketchUp.
Malgodur
Posts: 195
Joined: Sun Mar 15, 2009 8:22 pm

Post by Malgodur »

My version can export only to .kmz files?... where can i download exporter?
jokoon
Posts: 17
Joined: Sun Aug 30, 2009 9:17 am

Post by jokoon »

bump
link3rn3l
Posts: 81
Joined: Wed Nov 15, 2006 5:51 pm

Re: Google SketchUp 7

Post by link3rn3l »

Malgodur wrote:Is there any converter Google SketchUp 7 to ms3d, or any irlicht Google SketchUp 7 loader?

a excelent tutorial to use scketup with irrlicht :
http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=34290

..

:lol:
Bennu (Best 2d and 3D dev-tool)
http://bennupack.blogspot.com

Pixtudio (Best 2D development tool)
http://pixtudiopack.blogspot.com

Bennu3D(3D Libs for bennu)
http://3dm8ee.blogspot.com/

Colombian Developers - Blog:
http://coldev.blogspot.com/
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

Don't be so naive to use sketch up! XDD Use a true 3D application like Blender! :P
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Kojack
Posts: 67
Joined: Sun Jan 20, 2008 2:39 am

Post by Kojack »

Don't be so naive to use sketch up! XDD Use a true 3D application like Blender!
Actually sketchup can be really good for certain kinds of modelling. It's useless for organic stuff or characters, but it's awesome for architectural objects like the interior of houses or buildings.

And I'm not just saying that because the tutorial mentioned by link3rn3l above uses a modified version of my sketchup exporter. :)
jokoon
Posts: 17
Joined: Sun Aug 30, 2009 9:17 am

Post by jokoon »

Yes, of course I won't make any character or living/animated stuff with sketchup, it is just to make environment.

I'm just a beginner, and I don't want to hassle using blender for animating stuff since that is not my first priority in my game...

And yes, sketchup is for noobs... but it is because it is so cool =)

Google did not buy for nothing, it is just a very good piece of software: it does what it does, but it does it nice.
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Post by Mel »

Yeah, but the time sketchUp won't give you what you need what will you do? besides, seems that the 3DS models SketchUp exports aren't that good, i had very bad experiences with SketchUp coworkers. I insist on you getting a true 3D app, but i guess the time needed to learn blender is much higher than that to learn SketchUp.
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Use whatever works for you :P

I didn't read the tutorial, but KMZ files are just zip files which contain a collada (dae) mesh and some textures. Even if the latest version doesn't export to Collada, just rename the KMZ file to .zip and extract what you need.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Chet
Posts: 53
Joined: Wed Sep 10, 2008 5:34 am

Post by Chet »

Just using the kmz file sorta works. But I am not getting textures. I tried ogre export but it doesn't seem to work - I get to the dialog for file name and it just quits.

From using the kmz file I get some collada warnings about wrong tag usage.

At this point I am just experimenting with files, using my model in the second tutorial .. now how the heck to I slow down the camera? (yes I know getting ahead of myself should finish the tutorials but I really want to make sure I can get files that will work before I go through all that).

I really do want to use sketchup for basic buildings :D

Edit: its openGL 2.1.1 no complaints about texture files and the ones in the quakemap work fine.

Edit2: I imported the dae file to irrEdit - it finds the textures and loads them but does not apply them to the model.
Courage
Posts: 2
Joined: Mon Oct 05, 2009 10:00 am
Location: Szeged

Post by Courage »

I have a same problem too.

I'm just getting into the usage of Irrlicht Engine. But specifically for the purpose of loading Google SketchUp kmz files to it.
Can somebody help me how to do it please?

I tried to do it,following the quake3 map loader tutorial, and used the following code:

Code: Select all

#include <irrlicht.h>
#include <iostream>

using namespace irr;

#ifdef _MSC_VER
#pragma comment(lib, "Irrlicht.lib")
#endif

int main()
{
	video::E_DRIVER_TYPE driverType;

	printf("Please select the driver you want for this example:\n"\
		" (a) Direct3D 9.0c\n (b) Direct3D 8.1\n (c) OpenGL 1.5\n"\
		" (d) Software Renderer\n (e) Burning's Software Renderer\n"\
		" (f) NullDevice\n (otherKey) exit\n\n");

	char i;
	std::cin >> i;

	switch(i)
	{
		case 'a': driverType = video::EDT_DIRECT3D9;break;
		case 'b': driverType = video::EDT_DIRECT3D8;break;
		case 'c': driverType = video::EDT_OPENGL;   break;
		case 'd': driverType = video::EDT_SOFTWARE; break;
		case 'e': driverType = video::EDT_BURNINGSVIDEO;break;
		case 'f': driverType = video::EDT_NULL;     break;
		default: return 1;
	}	

		IrrlichtDevice *device =
		createDevice(driverType, core::dimension2d<s32>(640,480));

	if (device == 0)
		return 1; 
	video::IVideoDriver* driver = device->getVideoDriver();
	scene::ISceneManager* smgr = device->getSceneManager();

	device->getFileSystem()->addZipFileArchive("../../media/asd.zip");

	scene::IAnimatedMesh* mesh = smgr->getMesh("asd.dae");
	scene::ISceneNode* node = 0;
	
	if (mesh)
		node = smgr->addOctTreeSceneNode(mesh->getMesh(0), 0, -1, 1024);

	if (node)
		node->setPosition(core::vector3df(-1300,-144,-1249));

	smgr->addCameraSceneNodeFPS();

	device->getCursorControl()->setVisible(false);
	int lastFPS = -1;

	while(device->run())
	{
		if (device->isWindowActive())
		{
			driver->beginScene(true, true, video::SColor(255,200,200,200));
			smgr->drawAll();
			driver->endScene();

			int fps = driver->getFPS();

			if (lastFPS != fps)
			{
				core::stringw str = L"Irrlicht Engine - Quake 3 Map example [";
				str += driver->getName();
				str += "] FPS:";
				str += fps;

				device->setWindowCaption(str.c_str());
				lastFPS = fps;
			}
		}
		else
			device->yield();
	}
	device->drop();
	return 0;
}
So basically changed the files that would be loaded.
Program won't run with either DirectX mode, in OpenGL(and the rest) I get the following warnings:

http://www.stud.u-szeged.hu/Keri.David/problem.jpg

The model I want to load is a simple static cube (sort of), with textures on it.
Can someone correct me,please?
Chet
Posts: 53
Joined: Wed Sep 10, 2008 5:34 am

Post by Chet »

The latest version of Sketchup (7.1) exports collada files, which should work but unfortunately they don't. Another option is to get a script which exports other formats, I use one that makes X files.
Courage
Posts: 2
Joined: Mon Oct 05, 2009 10:00 am
Location: Szeged

Post by Courage »

So any idea how to solve my problem here?
Post Reply