Page 2 of 12

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 03, 2008 11:38 am
by boblishman
I wanted to use a "new" age ... and yours just seemed perfect! (CampBravo rocks!). Glad you like it :)
(oh, I updated the sketch drawing in my previous post ... much more appropriate now)

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 03, 2008 12:20 pm
by Chacal
Maybe it is, but it was still interesting to see the leaves in color in the journal. Nothing says we have to keep using the same journal style as in Myst! For instance, what if someone took pictures of his Age and glued them in his journal? Or what about a photo album? A magazine?

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 03, 2008 12:24 pm
by boblishman
I agree totally, but my original objective was to create a 'sketch' (which the leaves were not) ... but yes, I am going to actually put some 'real' leaves in the journal later on ... fixed with sticky tape ;)

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 03, 2008 12:40 pm
by boblishman
... like this ...

Show Spoiler

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 03, 2008 2:24 pm
by Chacal
Exactly what I had in mind. That looks great!

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 03, 2008 2:51 pm
by boblishman
Ok ... more testing ...

Now it seems logical ... a picture on a text line forces a line break, both at the start and finish of it (you can't have a mixture of the two on one line, it''s text OR a picture) so, Uru wants the picture to be 512 pixels WIDE ... however, :) ... good news ... they CAN be of different heights (as long as they are Base 2 - 2,4,8,16,32,64,128,256 or 512) ...
EDIT: using the GoWPyPrp Plugin version 1.2.1. or later means you can use ANY size image

Now, there is another thing to take into consideration ... the font size of the text. The picture is placed on a text line, and, depending on the HEIGHT of the picture, that may not 'line up' with the next line of text, so it forces another line break. Something similar happens at the start of the picture too ... and, depending on the font size, part of the text MAY be 'chopped off' by the alpha transparancy of the picture. To avoid this, always FORCE a line break BEFORE your picture (\n).

You have to play around with the font size and your picture size (but keep to the 512 x (base2) size) to get everything 'perfect' ... but, if you are using this Python template, thats pretty straightforward and easy to do (you're editing the *YourAge*Journals.py file which ONLY contains the content ... so not messing with any python 'scripting' code that makes the journals 'work'.

You can get some cool effect ... (these were just some quick tests I did, but you get the idea).

Show Spoiler

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 03, 2008 5:19 pm
by boblishman
OKAY, so.. the new version of the plugin was just released ... ROTFL ... a whole day spent working on this ... and the new plugin version GowPyPrp 1.2.1 means that you can use ANY size image (and I mean ANY) as long as you have the INTERPOL and MIPMAP turned off which now stops resizing and compression ... (Oh well, I wasn't doing anything interesting today anyway ... *crawls into a corner*)

... so, it WAS the resizing that was causing the problems... ;)

Oh well... sorted now ... better edit the tutorial ... again ... *sigh*

Seriously, Thanks Trylon for doing that :)

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 03, 2008 8:30 pm
by Chacal
Look at it that way: It's because of guys like you who spend their days finding problems that guys like Trylon can fix them.

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 10, 2008 6:00 pm
by dah'kree
I tried using your script to add a journal to the age I am working on, and its not adding the click hotspot, though both the age export and the Python.o.elf file seems like it should.

Re: Dynamic Book Template (version 2)

Posted: Sun Feb 10, 2008 7:04 pm
by andylegate
What does your log file say?

And try this just for giggles:

select your book in blender and go to the logic properties (purple smiley face).

Make sure you have a string property.

If it says: Name:clickfile

try changing it to: clickfileX
that's a Big X on the end.

Don't ask me. But I couldn't get any of my books to have a hot spot. I took a look at the FuncChk age, and that X was there.
I changed mine, and bingo, all my books gave me a hot spot after that.