web 3D mod (X3D/VRML / cult3D / QTVR/ flash / etc) web 3D mod (X3D/VRML / cult3D / QTVR/ flash / etc)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

web 3D mod (X3D/VRML / cult3D / QTVR/ flash / etc)

Started by tom_a_sparks, August 09, 2006, 04:55:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tom_a_sparks

I would like to have a custom mod for web 3D apps (X3D/VRML / cult3D / QTVR/ flash / etc)
excluding images and videos

Joachim Müller



Joachim Müller

Erm, no - I didn't ask for examples of what other galleries have, as I don't care for features other apps may have.

To be more exact:
- Do you want coppermine to be able to add other filetypes to the database?
- As you're requesting a mod that might require a lot of coding: are you ready to actually pay for this?

tom_a_sparks

support for other filetypes: yes

if I can see how the flash demo works
then i could be able to code my stuff in
with the object/embed/applet code

Joachim Müller

Just edit coppermine's filetypes table (cpgXXX_filetypes) using a third-party tool like phpMyAdmin and add the file types you see fit. Alternatively, you could use the plugin Filetype editor
Keep in mind though that this will enable you to add those files to coppermine's database - it won't enable you to embedd them into pages, as coppermine is not a player software - it just embeds objects into html pages.

tom_a_sparks


Joachim Müller

I don't have a clue. I don't even know the file types you're refering to (expcept Flash of course, but there's built-in support for flash). Since those file types are not standard, I guess that the visitors of your page don't have the plugins needed to view those files anyway. To find out how to embedd those players into a page, you should visit the home page of the creators of "cult3D" or whatever files you're trying to share with your site visitors - maybe the creators of those apps / file formats have recommendations / docs on their page how this can be accomplished.

As I suggested before: Coppermine is not a player app - it just embedds content. In the case of regular jpeg files, your operating system and browser already come with built-in mechanisms to display them. For Flash and other common file types, there are plugins available, so basically your browser handles them using that particular plugin (that usually comes from Macromedia in the case of flash files).

tom_a_sparks

how do i change this
<object id="SWFlash"  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" type="application/x-shockwave-flash" width="418" height="278"><param name="autostart" value="true" /><param name="src" value="albums/userpics/34398/shimmer.swf" /><embed width="418" height="278" src="albums/userpics/34398/shimmer.swf" autostart="true" type="application/x-shockwave-flash" ></embed></object>
to this based on the filetype (cult3D)

      <OBJECT ID="CultObject"
         CLASSID="clsid:31B7EB4E-8B4B-11D1-A789-00A0CC6651A8"
         CODEBASE="http://www.cult3d.com/download/cult.cab#version=5,3,0,212"
         BORDER="0"
         WIDTH="100%"
         HEIGHT="100%">
         <PARAM NAME="SRC" VALUE="untitled.co">
         <PARAM NAME="ANTIALIASING" VALUE="0">
         <PARAM NAME="PBCOLOR" VALUE="FFFFFF">
         <PARAM NAME="VIEWFINISHED" VALUE="0">
         <PARAM NAME="DISABLEPB" VALUE="0">
         <PARAM NAME="ANTIALIASINGDELAY" VALUE="250">

         <EMBED NAME=CultObject
            PLUGINSPAGE="http://www.cult3d.com/newuser/index.html"
            TYPE="application/x-cult3d-object"
            SRC="untitled.co"
            ANTIALIASING="0"
            WIDTH="100%"
            HEIGHT="100%"
            PBCOLOR="FFFFFF"
            BORDER="0"
            VIEWFINISHED="0"
            DISABLEPB="0"
            ANTIALIASINGDELAY="250"
         </EMBED>
      </OBJECT>

Sami

copy theme_html_picture() function from themes/sample/theme.php and change it the way you want
‍I don't answer to PM with support question
Please post your issue to related board

tom_a_sparks

thank you
next is applets

<applet name="ptviewer" archive=ptviewer.jar  code=ptviewer.class
width=420 height=300 mayscript=true>
<param name=file      value="pano.fjpg">
<param name=cursor      value="crosshair">
<param name=frame      value="frame.gif">
<param name=gamma      value="1.4">
<param name=exposure      value="1">
<param name=autorange      value="30">
<param name=quality   value=2>
<param name=shotspot0   value=" x336 y286 a350 b300 u'ptviewer:startAutoPan(0.5,0,1)' ">
<param name=shotspot1   value=" x350 y286 a364 b300 u'ptviewer:stopAutoPan()' ">
<param name=shotspot2   value=" x364 y286 a378 b300 u'ptviewer:startAutoPan(0,0,0.97)' ">
<param name=shotspot3   value=" x378 y286 a392 b300 u'ptviewer:startAutoPan(0,0,1.03)' ">
</applet>

Joachim Müller

Exactly the same method applies as suggested above, just keep on adding if/then or case switches for all your custom filetypes.

tom_a_sparks

I am looking at the params now
how do I define them

<param name=shotspot0   value=" x336 y286 a350 b300 u'ptviewer:startAutoPan(0.5,0,1)' ">
<param name=shotspot1   value=" x350 y286 a364 b300 u'ptviewer:stopAutoPan()' ">
<param name=shotspot2   value=" x364 y286 a378 b300 u'ptviewer:startAutoPan(0,0,0.97)' ">
<param name=shotspot3   value=" x378 y286 a392 b300 u'ptviewer:startAutoPan(0,0,1.03)' ">

also I have custom one off param code and needed extra files
for each file
is there any way to custom the edit file
to add the new params?