Warning: strpos() [function.strpos]: needle is not a string or an integer in /home/www/6c0b12205eaced73565c8eab34735279/web/jegx/index.php on line 41

Warning: strpos() [function.strpos]: needle is not a string or an integer in /home/www/6c0b12205eaced73565c8eab34735279/web/jegx/index.php on line 48
JeGX's DevBlog
Lua 5.1 and require() 
Friday, April 28, 2006, 09:53 PM - News
Lua 5.1 has brought many changes and one of these changes concerns the require() function at
the user level (i.e in lua script). Up to lua < 5.1, I used in Hyperion lua scripts the require()
function to load external lua files such as declaration of constants. But now with
lua 5.1, require() does not work for loading lua files (besides, the reference manual
says it clearly : "There were substantial changes in function require due
to the new module system"). So the solution I've found is to use the dofile() function.
This function opens a file and executes its contents as a Lua chunk. Just what I need.
So where there was in hyperion demos:

require( HYP_GetBaseDir() .. "/hyperion_lua_host_api_defines.lua" );

you have to replace by:

dofile( HYP_GetBaseDir() .. "/hyperion_lua_host_api_defines.lua" );

or even better:

dofile( "hyperion_lua_host_api_defines.lua" );

This last line of code supposes that a file called hyperion_lua_host_api_defines.lua is
placed in the hyperion root directory, no matter where your demo is. This solution is cool
because there is now an unique file for the constants that needs to be updated.
hyperion_lua_host_api_defines.lua will be shipped with the new hyperion very very soon...

view entry ( 1297 views )   |  0 trackbacks   |  permalink   |   ( 3 / 1978 )

Hyperion News 
Wednesday, April 26, 2006, 01:28 PM - News
The new version of Hyperion is about to be released. It will be a very cool release since
the support of TCP-UDP/IP socket is done and the new LUA scripting engine (LUA 5.1)
is now operational. I've done some code samples showing how to set up a TCP server
in Hyperion using operating system threads (not lua ones) and coroutines.

Coroutines are a cool tool in the lua developer's toolbox. Coroutines are also called
collaborative threads. In short, your brain replaces the operating system scheduler and
it's up to you to perform thread yielding and resuming. In collaborative multithreading
each processus decides when it has to yield the CPU time to another processus
(collaborative multithreading was in the core of win 3.x if I''m not wrong).
LUA 5.1 comes with some examples of coroutines and a demo that shows how create
a TCP server in Hyperion using coroutines will be available with the new Hyperion.

The LuaSocket lib allows the (Hyperion) coder to easily create TCP/UDP server and
client or perform common ftp and http requests. Really cool!

Stay tuned! :winkhappy:
view entry ( 1116 views )   |  0 trackbacks   |  permalink   |   ( 3 / 983 )

Galaxy Explorer Contest 
Wednesday, April 26, 2006, 11:58 AM - General, News
CGIndia starts its first CG contest: Galaxy Explorer Contest.
From an existing .3DS model (see screenshot below), competitors may modify the 3d model in any ways
but the final output will look at least the derivative of the basis shape of the given 3d model:

Tri= 4582 - Vert=2315 - 3 materials

Cool, this kind of contest allows everyone to take part in.
Final Rendering should be submitted before 22nd May 2006: a little short, no?
Anyways, I think that just for fun, I'll try to do something. Keep an eye on.

view entry ( 1126 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 3 / 2201 )

Want To Be A Game Programmer? 
Monday, April 24, 2006, 08:53 AM - News
Marc Mencher, the founder of www.GameRecruiter.com, has published an article that talks about the spirit and the skills you must have if you wanna be a game programmer:
- never give up when things get hard
- be curious
- have the team attitude
- be a self starter
- be a follow-through: the last 10% of a task can take 90% of the time (yes it's true!!!)

Check this article out!

view entry ( 1103 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 3 / 1999 )

ASM 2006 Invit 
Sunday, April 23, 2006, 06:52 PM - News
The asm2006 invitation demo review is available on oZone3D Demoscene forum. The zik and gfx are nice. :thumbup:

view entry ( 905 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 3 / 895 )

PHP Tutorials 
Sunday, April 23, 2006, 09:18 AM - News
Here is cool page about PHP programming hosted in the Zend website.

There are very interesting tutorials like Securing Forms with Random Noisy Images or Generating Advanced Web Page Statistics using PHP.

I think they're worth while. Check them out and :thumbup:
view entry ( 2594 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 3 / 1849 )

LuaSocket Library 
Friday, April 21, 2006, 11:20 AM - News
A Hyperion's (power) user sent me a link to this LUA lib.

I've planned to add TCP-UDP/IP support to Hyperion (almost one year already, and the worst thing is that the oZone3D engine has a socket lib since more than 2 years...). This will solve the most of problems regarding network communication. But I have to modify serously some internal parts of the Hyperion Lua host-api in order to manage parallel LUA code paths (or states). Now that the new LUA engine (v5.1) has been released, I'm going to tackle this task. But... the LuaSocket lib seems to be really cool with many functionalities.

Then before starting hyperion destruction with this heart surgery, I'm going to look seriously at how Hyperion can use the LuaSocket Lib and modify Hyperion if needed.

Once again, stay tuned!
view entry ( 1172 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 2.9 / 2053 )

Lua 5.1 
Friday, April 21, 2006, 09:46 AM - News
Yeeeessss! The new LUA scripting engine is finally out! After 3 years (version 5.0 has been released on feb. 2003). This is a great thing for the LUA community and for Hyperion!

So now, I can dive into Hyperion's core and add some stuffs regarding LUA multithreading capabilities (I know, it's not true multithreading, it's rather a child state deriving from the main state but the LUA function that create child state is called lua_newthread()...) and improve some other parts (which? I'don't know yet). There is also a new built-in lib to manage coroutines (or collaborative multithreading) at the script level. I'll try do do some tests with this lib.

Anyway, a new LUA version is always a blast!
view entry ( 1121 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 3 / 1766 )

Graphics Cards website 
Wednesday, April 19, 2006, 02:34 PM - News
Here is a website 100% dedicated to graphics boards: www.mvktech.net with daily updates. If you're serious about 3D graphics, this site will keep you up to date with 3D hardware. :thumbup:

view entry ( 1045 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 3 / 853 )

Tutoriaux sur Blender 
Wednesday, April 19, 2006, 10:05 AM - Programming
Voilà un petit site sympa en français qui propose des tutoriaux sur Blender (et aussi sur 3dsmax) comme par exemple:

Prise en main de l'interface
Première manip de base

Je ne vais tarder à tester blender histoire de voir sa compatibilité avec hyperion au niveau de l'export des meshes.

view entry ( 241 views )   |  0 trackbacks   |  permalink   |  related link   |   ( 3 / 1914 )

<<First <Back | 1 | 2 | 3 | 4 | 5 | 6 | 7 | Next> Last>>