POV-Ray : Newsgroups : povray.binaries.images : My first pixel shader Server Time
5 Nov 2024 00:27:14 EST (-0500)
  My first pixel shader (Message 1 to 6 of 6)  
From: Slime
Subject: My first pixel shader
Date: 25 Nov 2005 01:43:54
Message: <4386b2aa@news.povray.org>
A new shot from my level editor. The lighting is precalculated (the
background, which, by the way, was rendered in POV-Ray, was set to have no
effect on the lighting). I'm using the method used in Half Life 2 to mix
precalculated lighting with normal mapping, so this is fully compatible with
my previously implemented radiosity algorithm.

The texture itself was created with POV-Ray; I'll post the pigment and
normal map in a reply to this post.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message


Attachments:
Download 'radiositypixelshader.jpg' (303 KB)

Preview of image 'radiositypixelshader.jpg'
radiositypixelshader.jpg


 

From: Slime
Subject: Re: My first pixel shader
Date: 25 Nov 2005 01:48:12
Message: <4386b3ac@news.povray.org>
The pigment and normal map, both based off of my repeatable "2D Crackle"
function. The normal map was made with another function by sampling the
derivative of the pattern - the RGB color is interpreted in the pixel shader
as an XYZ vector.

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message


Attachments:
Download 'radiositypixelshaderpig.jpg' (58 KB) Download 'radiositypixelshadernorm.jpg' (138 KB)

Preview of image 'radiositypixelshaderpig.jpg'
radiositypixelshaderpig.jpg

Preview of image 'radiositypixelshadernorm.jpg'
radiositypixelshadernorm.jpg


 

From: Przemek Loesch
Subject: Re: My first pixel shader
Date: 25 Nov 2005 14:50:01
Message: <web.438769d88f988d7fb0aac12c0@news.povray.org>
Off topic.
I've looked at your site and found that you use "friendly URLs" as the links
to the contents. I've learned this trick recently and want to use it for an
internet site I'm preparing. But can't get rid of calling my script file
directly in URL, like "www.mysite.com/index.php/something". I'm wondering
how to "hide" index.php in such an URL. Is it a matter of Apache settings
to read always particular file?
Sorry for off topic posting.


Post a reply to this message

From: dlm
Subject: Re: My first pixel shader
Date: 25 Nov 2005 16:30:21
Message: <4387826d$1@news.povray.org>
"Przemek Loesch" <nomail@nomail> wrote in message 
news:web.438769d88f988d7fb0aac12c0@news.povray.org...
> Off topic.
> I've looked at your site and found that you use "friendly URLs" as the 
> links
> to the contents. I've learned this trick recently and want to use it for 
> an
> internet site I'm preparing. But can't get rid of calling my script file
> directly in URL, like "www.mysite.com/index.php/something". I'm wondering
> how to "hide" index.php in such an URL. Is it a matter of Apache settings
> to read always particular file?
> Sorry for off topic posting.
>
>
>
Friendly urls from friendly servers. In general php enabled sites will 
autoload index.php if you point tp the containing folder (its an apache 
configuration setting). So if you want to load
www.mysite.com/something/index.php (where something is a folder) then refer 
to
www.mysite.com/something/
www.mysite.com/something (without the trailing /) may not work on some 
servers.
httpd.conf specifics: DirectoryIndex index.html index.html.var index.php
DLM


Post a reply to this message

From: Przemek Loesch
Subject: Re: My first pixel shader
Date: 25 Nov 2005 17:45:00
Message: <web.438792bf8f988d7fb0aac12c0@news.povray.org>
> Friendly urls from friendly servers. In general php enabled sites will
> autoload index.php if you point tp the containing folder (its an apache
> configuration setting). So if you want to load
> www.mysite.com/something/index.php (where something is a folder) then refer
> to
> www.mysite.com/something/
> www.mysite.com/something (without the trailing /) may not work on some
> servers.
> httpd.conf specifics: DirectoryIndex index.html index.html.var index.php
> DLM

Thanks for your answer. I'will contact my hosting company for details if
it's a server specific problem. Now I'm preparing the code at home and have
no possibility to test how it works in real environment.
I apologize one more time for off topic posting.


Post a reply to this message

From: Slime
Subject: Re: My first pixel shader
Date: 26 Nov 2005 03:01:36
Message: <43881660$1@news.povray.org>
> I've looked at your site and found that you use "friendly URLs" as the
links
> to the contents. I've learned this trick recently and want to use it for
an
> internet site I'm preparing. But can't get rid of calling my script file
> directly in URL, like "www.mysite.com/index.php/something". I'm wondering
> how to "hide" index.php in such an URL. Is it a matter of Apache settings
> to read always particular file?

Actually, my website is just a lot of HTML files in directories (I generate
the content on my computer and then upload it manually), so I don't have a
problem like that to work around.

However, it should be possible to use your .htaccess file to redirect all
www.mysite.com/anything URLs to www.mysite.com/index.php/anything . For
information on how to do this, your best bet is google ("htaccess url
redirection" perhaps).

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.