Complex UV Layout in Maya
Over the last couple of years UV layout in Maya has changed for the better. In this course we're going to be taking a look at some of those changes as we UV map an entire character
# 1 17-06-2007 , 01:57 AM
tweetytunes's Avatar
Subscriber
Join Date: Jan 2004
Location: Bolton - UK
Posts: 2,457

building a website gallery

Been working on my website and now I have reached a sticking point. I need to know the best way of setting up a gallery page(s) on it.

I got the main pages done with images that are setup to point to a gallery page its just I don`t have one yet.

I want the gallery to be a bit like this
https://www.meurig3d.co.uk/gallery/in...allery=Renders
(this is a site from a uni mate of mine but he uses lightwave and not returning my emails)

Staying away from flash this time around as i was not a fan last time and found it very hard to update my site.

this is stickily html so any help would be great. I have a little html knowledge but don`t know how to set this up (out of my depth here).

So plz simplymaya pimp my site !



Last edited by tweetytunes; 17-06-2007 at 01:59 AM.
# 2 17-06-2007 , 09:20 AM
publicFunction's Avatar
Senior Software Developer
Join Date: Jan 2005
Location: Livingston, Scotland
Posts: 1,701
Tweet,

I can write you something out in a mo. But for a gallery I would not use HTML on its own, as the code can become quite unmanagable. Get an Access database version 2003 or lower and create a table called gallery and enter data into fields like:

ImageId (AutoNumber), imgName, imgLink, imgLinkFull,visable

You can then use ASP, or PHP or any other CGI code to access the data in the database to allow you to simply add stuff to the page without you having to recode the gallery page everytime you want to add or remove something.

But for the time being you need to create a table and then rows and cells to add the image data in. Also if you want to add a popup so when the image is clicked it will open in a new window as a larger version then you need to code a bit of Javascript to allow this and as the page wouldn't be dynamic you would have to create a function for every image. Continued on new post...


Chris (formerly R@nSiD)
Twitter
When the power of love overcomes the love of power the world will truely know peace - Jimmy Hendrix
Winner SM VFX Challenge 1
3rd Place SM SteamPunk Challenge (May 2007)
# 3 17-06-2007 , 09:26 AM
publicFunction's Avatar
Senior Software Developer
Join Date: Jan 2005
Location: Livingston, Scotland
Posts: 1,701
<script language=javascript>
function popupmyimage_1 () {
getopen=window.open('gallery/myfirstimage.jpg', 'openitup', 'height=480, width=640');
}
function popupmyimage_2 () {
getopen=window.open('gallery/mysecondimage.jpg', 'openitup', 'height=480, width=640');
}
</script>

This would continue until all the images have the desired code. Then you have to create the table and link each image up to the correct javascript function. Like this...

<table>
<tr>
<td></td><td></td><td></td>
</tr>
</table>

The table above will create a table 1 row along with 3 cells, to add more rows you need to copy the code form the <tr> to the </tr> and paste it under like this...

<table>
<tr>
<td></td><td></td><td></td>
</tr>
<tr>
<td></td><td></td><td></td>
</tr>
</table>

And so on... Continued on next post...


Chris (formerly R@nSiD)
Twitter
When the power of love overcomes the love of power the world will truely know peace - Jimmy Hendrix
Winner SM VFX Challenge 1
3rd Place SM SteamPunk Challenge (May 2007)
# 4 17-06-2007 , 09:32 AM
publicFunction's Avatar
Senior Software Developer
Join Date: Jan 2005
Location: Livingston, Scotland
Posts: 1,701
Once you have your table structure you need to look at adding your images into each cell (between the <td></td> code). The code needed would be...

<img src="myfirstimagethumb.jpg" border=0>

but to get this to link to the javascript code for each larger popup image is like this...

<a href="javascript : popupmyimage_1 ();"><img src="myfirstimagethumb.jpg"></a> (there should be no spaces, but the site put a :p in instead of what is shown lol)

This would be entered into very cell for everyimage. Getting a bit cluttered in there...

So if you are able to use PHP or ASP on your host let me know and I can show you the code to get you connected to an access database test it and then dynamicly link each image using one javascript link and one line of code for the table.

My gallery uses a language called Coldfusion and is done with this technique, of a database and single bits of code.

Hope it helpls, and you might want to chekc out this free site on Web Tutorials.

https://www.w3schools.com/

Enjoy


Chris (formerly R@nSiD)
Twitter
When the power of love overcomes the love of power the world will truely know peace - Jimmy Hendrix
Winner SM VFX Challenge 1
3rd Place SM SteamPunk Challenge (May 2007)

Last edited by R@nSiD; 17-06-2007 at 09:34 AM.
# 5 17-06-2007 , 11:23 AM
gster123's Avatar
Moderator
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Chris is right, if you did a table it could end up being a right pain the in the rear to keep it managble.

You could have it as one image set up with a background that when you click over an area (the pic of the work) it links to the larger pic, that would be a ain to set up too as you would have to, make the main pic then write down the coordinates and then link them together.

If it was me I would use something like dreamweaver, if youve got it of course, then you wont have to bother with the coding of the page as it will do it for you, I seem to remember that there was a free programme from Mozilla that had a similar drag and drop way of creating HTML websites, just googled it and its now called seamonkey, heres the link

https://www.mozilla.org/projects/seamonkey/


Hope it helps

Steve


"No pressure, no diamonds" Thomas Carlyle
# 6 17-06-2007 , 02:51 PM
Weyu's Avatar
Registered User
Join Date: Nov 2006
Location: Sweden
Posts: 482
Aww horrible memories from my HTML class. I guess it will be usefull when my time to create a website to show my work tho. user added image

# 7 17-06-2007 , 06:10 PM
tweetytunes's Avatar
Subscriber
Join Date: Jan 2004
Location: Bolton - UK
Posts: 2,457
cheers guys (and really thx you R@nSiD)
for taking the time for the messages. Its the whole data base stuff that has had my head in a spin. even going thought these posts I`m still a little confused. I have access but it came with office 2007 so I think its a different process. The tables and rows stuff I got - I have had to deal with them before on the old flash site.

My boss pointed me to a cheap and cheerful program called "Magic Gallery"
https://www.raizlabs.com/Magic/
which has done the job in about 12 min with just the trial so I got the full thing - nice and cheap.

Again thx you very much - and I`m going to look in to how to do this myselfand these tips were a great starting point. Look out for my new site soon.

oh and gster123 seamonkey is a internet browser could not find any edit options in it that ain`t html based


# 8 17-06-2007 , 08:37 PM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
didnt get here in time but I've played with a few free php based ready made image galleries that take all the hassle out of building one from scratch - especially if a) you dont have time to code a full featured system or b) you dont know much about it all.
https://gallery.menalto.com/
https://coppermine-gallery.net/

both are web-based and do what you expect - web-based interface for creating and editing galleries and uploading content. They also auto-generate thumbnails and you can tag content and export it out etc.
Anyways, more for reference now user added image

Si


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net

Last edited by t1ck135; 17-06-2007 at 08:40 PM.
# 9 17-06-2007 , 08:47 PM
gster123's Avatar
Moderator
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Nice one Si, i'll book mark them for when I get round to doing something!

Tweety - Thats why I suggested it, as I thought that you wanted it to be HTML? Must have got the wrong end of the stick somewhere LOL


"No pressure, no diamonds" Thomas Carlyle
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads