Tesselated Image

Post those lines of code you feel like sharing or find what you require for your project here; or simply use them as tutorials.
greenya
Posts: 1012
Joined: Sun Jan 21, 2007 1:46 pm
Location: Ukraine
Contact:

Post by greenya »

bitplane wrote: So you're on thin ice if you use copypasta without a valid license or written permission
Ok. I guess by "written permission" you mean that the author must write an email to me and say that i permitted to use it for that or that.

Two cases:
1) how can you detect if the email was really written by the author, if i cheated it?
2) how can you blame me for the "cheat" if the email with permission was real and author now says "i never wrote it"? because you cannot check it anyway, since it all digital.

P.S.: personally i do not steal code or anything like that, but i was always wondering how all the copyrights kept safe.

and one more thing:
3) what about if i get a source and changed it on a half. the source is copyrighted and changes are not permitted. how can you detect that it is your code and i really didn't write (came up) to the same algorithm?
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

After all, this will be a question for the courts in the end. That's why it's always better to have a proper license which allows you to do the things you want to do. Moreover, PD or special licenses are also always depending on the local rights of the author's home area. And yes, if you want to be really sure, you have to get a written and signed contract.
Airo
Posts: 6
Joined: Thu Jul 23, 2009 5:24 pm
Location: Vienna

Post by Airo »

tecan wrote:http://www.xup.in/dl,21160254/tesselatedImage2.7z/

hmm what did i do wrong trying to implement this ?

there's no color and the balls seem to go on forever.
Hello, I went through your code, I needed to make two changes in your main.cpp to get it to work,

1) please pass the delta time in milliseconds to move() that has passed since the last render loop iteration

Code: Select all

    TesselatedImage *tesImage = new TesselatedImage(device, "test.bmp", vector3df(-600,0,500), vector3df(500, 550, 1000), vector3df(-130,50,100), 45, 15000, 10);
    tesImage->startAnimation();

    // In order to do framerate independent movement, we have to know
    // how long it was since the last frame
    u32 then = device->getTimer()->getTime();


	while(device->run())
	{
        // Work out a frame delta time.
        const u32 now = device->getTimer()->getTime();
        const f32 frameDeltaTime = (f32)(now - then) / 1000.f; // Time in seconds
        then = now;

        tesImage->move( frameDeltaTime );

        if (tesImage->hasAnimationFinished())
        {
            tesImage->reset();
            tesImage->startAnimation();
        }

		driver->beginScene(true, true, SColor(255,100,101,140));

		smgr->drawAll();
		guienv->drawAll();

		driver->endScene();
	}


	device->drop();

	return 0;
2) when creating the Irrlicht device do not take EDT_SOFTWARE, take EDT_OPENGL or EDT_DIRECT3D9 instead

Code: Select all

	IrrlichtDevice *device = createDevice( video::EDT_OPENGL, dimension2d<s32>(640, 480), 16, false, false, false, 0);

have fun and I am glad that you are using it :)

ciao
Airo
netpipe
Posts: 670
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Post by netpipe »

Image

pure awesome, thank you much for fixing / posting this.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

greenya wrote: 1) how can you detect if the email was really written by the author, if i cheated it?
I guess that digital signatures are the only real proof when it comes to email, I sign important emails with my digital signature. The most trustworthy source is posted in public under the author's real name with clear license terms.
greenya wrote:2) how can you blame me for the "cheat" if the email with permission was real and author now says "i never wrote it"? because you cannot check it anyway, since it all digital.
Regardless of any blame, the users of the software could be sued for copyright violations. As hybrid said, it's for the courts to decide.
greenya wrote:3) what about if i get a source and changed it on a half. the source is copyrighted and changes are not permitted. how can you detect that it is your code and i really didn't write (came up) to the same algorithm
The new code is legally a "derived work" and although it might be difficult to detect small scale plagiarism today, future algorithms might expose your dirty secret.

Sorry for all the off-topic chat in this thread, we should open a new topic if we're going to discuss this further.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply