LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-23-2012, 06:51 AM   #1
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Rep: Reputation: Disabled
Desktop add on


Hey I was wondering if there is a way of adding a 3d model (of a person) to the desktop and if so what file extension can it be(idealy .blend) if not if there is a way to program this. I would also like it to support animations (thus the .blend file which I have more xp using)

And something unrelated to the topic is there a way to write a python script and have its output be commands in the terminal?

Thanks
 
Old 06-23-2012, 07:00 AM   #2
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
Regarding your first question, it's almost impossible to answer without knowing what your current desktop environment is.
However, I've never read anything regarding this possibility. Maybe you could implement your own blender plasmoid (if you're a KDE user) to achieve this.
Regarding your (totally) unrelated second question, if what you want is execute some shell commands using variables inside your python program you could use the os.system("cmd") function.
 
Old 06-24-2012, 04:45 PM   #3
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
thanks i'm looking into plasmoid.

as for the desktop environment i am between creating on using the suggestions in this link: http://www.linuxquestions.org/questi...cratch-297862/

or use an existing desktop env. which i thought that i could use some game engine to make it be displayed (which i know is wishful thinking)

which do you think would be better? i would personally prefer to make the env. but that would take years just to have the one function that i want but i'd know the thing inside out and i'd be able to add things as i need them. on the other hand if i use kde i could at least write and test the tool much faster than creating a desktop env.

instead of using a 3d model would it be possible to use simple 2d animations (like microsoft word's paperclip) on kde or another env.?
 
Old 06-25-2012, 03:30 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
a .blend is NOT a 3d mesh
it contains one but also a LOT of other data and is used internally BY blender FOR blender
A .blend can ALSO be an executable python script ( depends on just WHAT is saved in the blender session )

Quote:
And something unrelated to the topic is there a way to write a python script and have its output be commands in the terminal?
just what is that script doing ?
if it is text only output it WILL output to the terminal
that is the normal behavior
 
Old 06-25-2012, 03:42 AM   #5
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
I'm no expert in desktop environment extensions/plugins, but I think that designing your own desktop environment from scratch and then adding this kind of functionality is highly infeasible, because of the complexity of the aforementioned task. I wouldn't even start designing one without having taken a look at how other DEs are designed/structured.
But there's is another (bigger) problem: what do you really want to do with this 3D model sitting on your desktop? Would it "live" inside its own window/desktop element? Would it be interactive? Would it use a fixed or mobile camera even during animations? How would you use lights?
Keep in mind that a .blend file doesn't contain only 3D models, but a lot of other information such as scene(s) setup (which include 3D models position, camera position, world lighting setup, textures, materials etc.), embedded materials/textures/images, armatures/bones setups, animation data, sounds, nodes setup etc.
I think you could use some third-party parser for blender files (the Oolong engine seems to include one, but I guess there are some others out there) but you'd still need to exactly know what you're gonna do with the data contained therein.
Animations are possible with KDE plasmoids (I guess this is also true in other environments) as you can see in this plasmoid
Plasmoids can be written in several different languages too (Javascript, Python, C++, QML).
As a first design step I would, however, design this 3D desktop applet as a standalone application, then I would find a way to make it a desktop widget.
 
Old 06-28-2012, 02:26 PM   #6
kiyoshi7
Member
 
Registered: May 2012
Posts: 37

Original Poster
Rep: Reputation: Disabled
Quote:
what do you really want to do with this 3D model sitting on your desktop? Would it "live" inside its own window/desktop element? Would it be interactive? Would it use a fixed or mobile camera even during animations? How would you use lights?
i want the model to be interactive with a fixed camera as for lights i was thinking of making the model shade-less and remove lights all together. i want it to 'live' in the desktop but always be 'on top' of all the windows/desktop(it its unwanted at an ygiven time it would 'walk off' the screen. imagine it like a tomagochi character/monster/ect.. on screen but with more interaction. and it would 'talk' to you by using a speech bubble.

in terms of functionality for starters i want this 'tool' to basically 'teach' new users some basic things for new linux users. but in the end i want this to replace my interface entirely so i can do everything through this 'doll' from saving a file, opening a web browser to using it as if it were terminal(all it would do is change the 'face' of the applications in this case)

Quote:
a .blend is NOT a 3d mesh
it contains one but also a LOT of other data and is used internally BY blender FOR blender
A .blend can ALSO be an executable python script ( depends on just WHAT is saved in the blender session )

Quote:
And something unrelated to the topic is there a way to write a python script and have its output be commands in the terminal?
just what is that script doing ?
if it is text only output it WILL output to the terminal
that is the normal behavior
actually i wanted to know this so i can 'automate' the whole lfs process taking into consideration any changes i want. eg: instead of /mnt/lfs it creates /mnt/bob
 
  


Reply



Posting 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add launchers to desktop in Java Desktop System omega71122 Solaris / OpenSolaris 6 01-31-2006 05:15 PM
How do I add a program off of my desktop? redriverd Linux - Newbie 3 01-31-2006 11:05 AM
Add a new Desktop Environment justintime32 Mandriva 5 02-26-2005 12:19 PM
how do I add icons to the desktop incanus_1 Linux - Newbie 7 01-27-2004 09:58 AM
how to add applications to bb desktop arktype Linux - Newbie 8 08-29-2002 10:04 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration