Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Scripting 3D Shapes (https://forums.graalonline.com/forums/showthread.php?t=73897)

godofwarares 05-10-2007 12:13 AM

Scripting 3D Shapes
 
I've been trying to experiment with 3D models and I was wondering if I could make the format .obj work on Graal?

If so, How would I code this?

The only variables I could find were:
PHP Code:

TShowImg.shape
TShowImg
.shapeobject 

but I don't think they are useful with files...
Any ideas?

cbk1994 05-10-2007 12:27 AM

I think this is impossible with the current image, you would have to be able to stretch certain pixels of an image, not possible with TShowImg.

godofwarares 05-10-2007 01:52 AM

Quote:

Originally Posted by cbkbud (Post 1306644)
I think this is impossible with the current image, you would have to be able to stretch certain pixels of an image, not possible with TShowImg.

Damnit, Whats the point of TShowImg.shape and TShowImg.shapeobject then?

xXziroXx 05-10-2007 10:46 AM

You could always make a GuiStretchCtrl and display the image in that one!

Admins 05-10-2007 09:58 PM

The attributes shape and shapeobj for TShowImg are only used in Graal3D. If you want to try 3D you could use GuiPlayerView on Linux/Mac/OpenGL (-opengl) and assign a value to "shape". It currently only accepts dts, 3ds, ft and dif.

godofwarares 05-11-2007 12:48 AM

Quote:

Originally Posted by Stefan (Post 1306824)
The attributes shape and shapeobj for TShowImg are only used in Graal3D. If you want to try 3D you could use GuiPlayerView on Linux/Mac/OpenGL (-opengl) and assign a value to "shape". It currently only accepts dts, 3ds, ft and dif.

Cool, I'll try this later :D

Edit: Egads! It doesn't work :[

Rapidwolve 05-11-2007 02:05 AM

Quote:

Originally Posted by godofwarares (Post 1306875)
Cool, I'll try this later :D

Edit: Egads! It doesn't work :[

Did you make sure you ran graal in opengl mode?

godofwarares 05-11-2007 12:36 PM

Quote:

Originally Posted by Rapidwolve (Post 1306895)
Did you make sure you ran graal in opengl mode?

Of course, but then again my OpenGL has never worked properly. Can anyone redirect me to a link where I can update this OpenGL?

zokemon 05-11-2007 12:58 PM

Quote:

Originally Posted by godofwarares (Post 1306976)
Of course, but then again my OpenGL has never worked properly. Can anyone redirect me to a link where I can update this OpenGL?

Trying to copy my signature? You're colors are off :(

And the funny thing is, I don't exactly know what MAKES OpenGL ._.
I have never heard of having to "update your OpenGL" so I don't know :o

godofwarares 05-11-2007 08:35 PM

Quote:

Originally Posted by zokemon (Post 1306984)
Trying to copy my signature? You're colors are off :(

And the funny thing is, I don't exactly know what MAKES OpenGL ._.
I have never heard of having to "update your OpenGL" so I don't know :o

OpenGL never worked properly for me :[

[Offtopic]
When I made this signature, I didn't even think of yours :P
[/Offtopic]

Deadly_Killer 05-11-2007 10:14 PM

Quote:

Originally Posted by godofwarares (Post 1306976)
Of course, but then again my OpenGL has never worked properly. Can anyone redirect me to a link where I can update this OpenGL?

And how did you run graal via opengl?

godofwarares 05-11-2007 11:26 PM

Quote:

Originally Posted by Deadly_Killer (Post 1307093)
And how did you run graal via opengl?

I used Command Prompt:

Quote:

Originally Posted by Command Prompt
C:\Documents and Settings\Hikaru>cd "C:\Program Files\Graal\"

C:\Program Files\Graal>Graal4.exe -opengl

C:\Program Files\Graal>_

After that, Its a pause and Graal will pop up, this time in OpenGL mode.

DustyPorViva 05-11-2007 11:27 PM

Go to start>run, find the graal4 exe, then add this onto the end, -opengl, and it should look like so:
C:\Graal\Graal4.exe -opengl
And just click OK

godofwarares 05-11-2007 11:34 PM

Quote:

Originally Posted by DustyPorViva (Post 1307118)
Go to start>run, find the graal4 exe, then add this onto the end, -opengl, and it should look like so:
C:\Graal\Graal4.exe -opengl
And just click OK

Guys, I know how to run programs with switches on them >_<
I just prefer to use Command Prompt.

DustyPorViva 05-11-2007 11:56 PM

He asked so I answered? No where did I correct what you posted, or even comment on you running it from the command prompt?

zokemon 05-12-2007 01:17 AM

Quote:

Originally Posted by DustyPorViva (Post 1307135)
He asked so I answered? No where did I correct what you posted, or even comment on you running it from the command prompt?

Quote:

Originally Posted by Deadly_Killer (Post 1307093)
And how did you run graal via opengl?

;)

DustyPorViva 05-12-2007 01:40 AM

Well then I misinterpreted what he said.

Twinny 05-12-2007 10:34 AM

Is it better to run Graal through openGL?

godofwarares 05-12-2007 01:49 PM

Quote:

Originally Posted by Twinny (Post 1307227)
Is it better to run Graal through openGL?

From what I see, OpenGL has horrible quality when drawing the objects around the Graal world. I prefer DirectX any day ;)

cbk1994 05-12-2007 02:35 PM

Quote:

Originally Posted by godofwarares (Post 1307243)
From what I see, OpenGL has horrible quality when drawing the objects around the Graal world. I prefer DirectX any day ;)

Hmm, weird. Have you tried it out much? I use it on my Linux and several of my Windows computers (they're kinda crappy ones, Direct X isn't compatible). OpenGL has worked fine on all those computers, and I have tried like 3 of them with Graal.

godofwarares 05-12-2007 02:58 PM

Quote:

Originally Posted by cbkbud (Post 1307253)
Hmm, weird. Have you tried it out much? I use it on my Linux and several of my Windows computers (they're kinda crappy ones, Direct X isn't compatible). OpenGL has worked fine on all those computers, and I have tried like 3 of them with Graal.

Well its mainly just the gradients (like on the GUI buttons) that are bad quality. OpenGL is a little odd for me to play (because everything isn't what i'm used to); I'm used to DirectX :/

Deadly_Killer 05-12-2007 07:58 PM

I normally make another shortcut for arguments.

Example Shortcut Path:
PHP Code:

"C:\Program Files\Graal4\Graal4.exe" -opengl 


Riot 05-12-2007 11:18 PM

Quote:

Originally Posted by Twinny (Post 1307227)
Is it better to run Graal through openGL?

It depends, its better for me since DirectX mode has a few minor issues (mostly animated tiles) under Vista while OpenGL doesn't.

I don't notice a quality difference in anything.

Skyld 05-13-2007 12:19 AM

Quote:

Originally Posted by godofwarares (Post 1307263)
Well its mainly just the gradients (like on the GUI buttons) that are bad quality. OpenGL is a little odd for me to play (because everything isn't what i'm used to); I'm used to DirectX :/

OpenGL support varies between different graphics cards and drivers, and such.

For me it was always more efficient to run in OpenGL mode on my Windows PC, and on a Mac and Linux it's OpenGL because there is no DirectX. There are no differences with image quality for me in OpenGL mode.

If you have issues with OpenGL, it suggests that it is poorly supported by your graphics card or drivers.

Admins 05-13-2007 12:19 AM

The problem with OpenGL on Windows is that it is less supported by graphic cards vendors, cards like S3 have ok DirectX support but none or very bad OpenGL support. Also Graal is taking much less Gfx resources in DirectX mode. The next Graal version will take less resources with both DirectX and OpenGL though.

The advantage with OpenGL is that it isn't a crappy API which is rewritten each year, and is much more reliable (if supported by the graphics card).
If there are gradiency problems then it is using 16 bit color resolution, that should look the same in DirectX and OpenGL though. Do you mean OpenGL in fullscreen has gradiency problems?

godofwarares 05-13-2007 01:12 AM

Quote:

Originally Posted by Stefan (Post 1307330)
The problem with OpenGL on Windows is that it is less supported by graphic cards vendors, cards like S3 have ok DirectX support but none or very bad OpenGL support. Also Graal is taking much less Gfx resources in DirectX mode. The next Graal version will take less resources with both DirectX and OpenGL though.

The advantage with OpenGL is that it isn't a crappy API which is rewritten each year, and is much more reliable (if supported by the graphics card).
If there are gradiency problems then it is using 16 bit color resolution, that should look the same in DirectX and OpenGL though. Do you mean OpenGL in fullscreen has gradiency problems?

I never use Fullscreen.
I may have found the problem, I havn't updated my GFX drivers in ages so I plan to do that soon.

More to the point of the thread, The GuiPlayerView doesn't work even with OpenGL on :[


All times are GMT +2. The time now is 11:09 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.